Centering background image?

damaestro

New Member
In dreamweaver I'm trying to figure out how I can have this starfield background remain in the absolute center of the page. Currently it stays always on the left side as the window is resized. I want the background image to stay in the middle always as the window is resized. Can anyone please tell me how this is done? Many thanks!
 

jnjc

New Member
I don't use dreamweaver so I am not sure how you would do it using it's UI, but you need to add the following to your body style:

background-position: center center;

HTH,
JC
 

natenation

New Member
You could add a 100% table that has centered content, then add a div at a specified width that has your bg image in it.... Or do what the last poster suggested ;)



Nate Johnson
Web Design - Comics - Illustration

<website address is only allowed in signature line>
 
Last edited by a moderator:
Top