View Full Version : Help with background positioning!


TjupTjup
02-25-2005, 07:09 PM
Okay.. I want my background to begin showing 400px from the left, but it doesn't seem to want to move..can anyone see what I've done wrong? I feel like I've tried everything now ^^


<style type="text/css">

A:link
{ text-decoration: none;
color:#000000;
}
A:visited {
text-decoration : none;
color : #000000;
}
A:active {
text-decoration : none;
color : #000000;
}
A:hover {
text-decoration : none;
color : #000000;
}
body {
background : #000000;
background-image : url(vbg.gif);
background-repeat : repeat;
background-position : top 400;
background-attachment : scroll;

font-family : verdana, tahoma, times new roman, arial;
color : #000000;
font-size : 10px;
margin-top : 0;
margin-bottom : 0;
margin-left : 0;
margin-right : 0;
padding-top : 0;
padding-bottom : 0;
padding-left : 0;
padding-right : 0;
}
td {
font-family : verdana, tahoma, times new roman, arial;
color : #8b5d5d;
font-size : 10px;
padding : 0;
}
</style>


To see my site CLICK (http://deep-thoughts.net/emily/vermillion.php)
(don't mind that a bunch of links don't work ^^)

lefty
02-25-2005, 07:37 PM
try using...
background-position:0px 400px;

TjupTjup
02-25-2005, 07:41 PM
I have tried that earlier.. And it still don't work that way either -_-

Any other ideas? ^^

jtchange
02-25-2005, 08:43 PM
perhaps this will work?
body {
margin-left:400px;
}

or if you are not going put things overtop of that image, make it an image and position it absolutely...

pb&j
02-25-2005, 09:08 PM
give this a go...
background-position: top 400px;

TjupTjup
02-26-2005, 09:27 AM
I just tried both things, and they don't work. But I've comed up with another way to do it (very complex, but it works).
But it just annoys me, that I can't get it to work in CSS..

pb&j
02-26-2005, 02:46 PM
just to ask... why are you positioning the background image on that page when it is a smaller image and you have it tiling anyways? anything seen on the page (text, images, etc) would be seen "above" the background image normally.

TjupTjup
02-26-2005, 03:00 PM
Because some pages are not as long as the menu can be, and it looks stupid with the background being beneath the text. Hehe ^^

But as I said, I've comed up with another way to do it ^^

pb&j
02-26-2005, 03:05 PM
hm. ok. hope the rest goes alot better for ya. good luck!