Forum Moderators: open

Message Too Old, No Replies

Bleeding layouts

         

DeVere

12:16 am on May 24, 2005 (gmt 0)

10+ Year Member



Here goes round 2...

We've all seen sites in flash that horizontally center the layout while the left and right edges bleed out under the edges of your browser. Usually these types of layouts are 1280 to 1600 wide to accomodate higher res settings. And resizing the window does NOT resize the swf.

My question: IS there a way to achive this in HTML? Can you horizontally center a layout while letting your background graphic (which as mentioned above would be at least 1280 wide) bleed to and UNDER the edges of the browser?

Tnanks!
David DeVere

tedster

2:48 am on May 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, DeVere. How about this to start your css file:

body {
margin:0;
padding:0;
background-image: url(bgimage.jpg);
background-position: center;
}

Then write your centered layout mark-up into it's divs or tables - bgimage.jpg should fully fill the screen behind it.