Sent by Jeroen Visser [ vizi ] on 27 September 2004 14:02
Ron wrote:
> Afternoon all
>
> I was playing with a stylesheet that divides the screen in three parts
> one called menu on the left side, one called center in the middle and
> the last one is called right:
>
> --- snip ---
>
> #menu {
> position: fixed;
> top: 20px;
> left: 20px;
> width: 100px;
> }
>
> --- end snip ---
> This works perfectly in mozilla/firefox and not at all in IE 6. The
> problem was that the margin-right from <div id="center"> was not
> inherited by the <p> tag.
I would argue that position:fixed is your problem, as IE/win does not
support fixed positioning of elements. For a solution, you can try Eric
B. Bednarz solution at <http://devnull.tagsoup.com/fixed/>.
Margins are not inherited by children afaik (same goes for border and
padding). See:
<http://www.blooberry.com/indexdot/css/properties/margin/margin.htm>
> Now i am not a CSS expert. So I was wondering which behavior is correct?
> IE or mozilla?
Mozilla. As usual. ;-)
Jeroen
--
vizi fotografie & grafisch ontwerp - http://www.vizi.nl/
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/