[thelist] Help with DIV problem
Seyon
evoltlist at delime.com
Mon Jun 7 18:51:48 CDT 2004
Message from Joshua Olson (6/7/2004 04:11 PM)
> > -----Original Message-----
> > From: sandra
> > Sent: Monday, June 07, 2004 3:56 PM
>
> > The site has a sideways scroll. It is a three column, CSS/DIV layout.
> >
> > The pages are at:
> >
> > http://www.saveinverclyderoyal.com/
>
>Sandra,
>
>I think the problem may lie in that you've broken what I consider the
>cardinal rule... never EVER put a set width on a div if you also specify any
>of border, padding, and margin. You broke that rule in the following three
>rules:
>
>#navleft{
>position: absolute;
>top:60px;
>left: 0;
>width: 13%;
>margin: 8px 3px 3px 3px;
>font-size: 0.85em;
>color:#6b93bb
>}
I think that's a pretty horrible cardinal rule to foist off on others. It
probably simplifies life for you but it doesn't really address the reason
why problem occurs - that width+margin+padding+border is computed
differently by different browsers.
Properly understanding that makes it quite obvious that a width can indeed
be specified so long as you leave sufficient "margin of error" space
instead of making them all add up to precisely 100%.
George's solution is much better.
regards.
--
Trinidad Carnival in all its photographic glory. Playyuhself.com
http://www.playyuhself.com/
More information about the thelist
mailing list