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;}
...which solves the problem in the mentioned browsers by establishing a
new 'block formatting contexts'[2].
> also, is there a way of stopping the bottom border of .courseholder
> from disappearing if either of the divs above is taller than minimum?
Those container-divs can't grow properly in standard compliant browsers.
I suggest adding...
.courseholder {display: table;}
.cbottom {display: table; width: 100%;}
...which introduce the behavior you want, again by establishing a new
'block formatting contexts'[2].
Not sure if your layout will work in IE7 though, as that browser doesn't
understand the above.
regards
Georg
[1]http://www.w3.org/TR/CSS21/box.html#collapsing-margins
[2]http://www.w3.org/TR/CSS21/visuren.html#q15
--
http://www.gunlaug.no
______________________________________________________________________
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/