On 11/1/06, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote: > Richard Grevers wrote: > > http://www.electec.co.nz/courses2.mv > > > > How can I eliminate the gap between the border of .courseholder and > > the background of .ctop in Firefox and Opera? > > First: it's 'collapsing margins'[1], which can be controlled in a number > of ways. > > I suggest you add... > > .ctop {overflow: hidden;}
Ah, I should have picked it was collapsing margins - I was working too late. overflow:hidden has nasty side effects for IE (stops it expanding for the longer headers). But I was able to remedy it by zeroing the top margin of the h4 and giving it 0.2ems padding instead. > This is almost the "sticky footer" problem miniaturised to a floated block: A fixed height bordered block, with a flexible height header, a footer which sticks to the bottom of it, and fluid middle section. All done in ems for scalability. -- Richard Grevers, New Plymouth, New Zealand Hat 1: Development Engineer, Webfarm Ltd. Hat 2: Dramatic Design www.dramatic.co.nz ______________________________________________________________________ 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/
