Gunlaug Sørtun wrote: > Henrik Nyh wrote: >> I want a div to have as its minimum height the viewport height sans margins. The margins could be any unit, though preferably pixels. > Ok, there seems to be a "demand" for those '100% high' solutions these days, so I adapted my "regular" to suit your requirements - visually. > > The following shouldn't be too far off in most browsers... > <http://www.gunlaug.no/tos/alien/test_07_1858.html> > ...but be warned: it is one big fake. CSS in page head.
Thank you! However, the body background will actually be a patterned image, so faking margins with solid colors doesn't cut it. Setting those colors to to "transparent" doesn't work either, as the white of the 100% column shines through. I realize I should have mentioned the background image in the original question - I obviously simplified too much for the sake of a simple example. Apologies for that. So can anyone think of a way of achieving a 100% high column with vertical margins, where the body background image will be visible through those margins? A top margin but having the bottom of the div flush against the bottom of the viewport/page would be nice, too, though a top _and_ a bottom margin is preferable. Since I underspecified in the original mail, perhaps I should also mention that I intend to have the div be fixed width and centered. I don't think the contents of the div should matter, at least. -- Henrik Nyh http://henrik.nyh.se ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/