[thelist] css percentages

Geoff Sheridan web2k2 at premonition.co.uk
Tue Feb 25 05:11:01 CST 2003


At 11:03 am +0000 25/2/03, Anthony Johnston - Antix wrote:
>With the standards on boxes as they are I cannot get a flush
>100% width bordered div - is this right?
>
><div style='width: 100%;' border: solid 10px;>lalala</div>
>will make the screen scroll.
>
>is there a work around... about? TA, Ant.

Divs are 100% width by default - just leave that declaration out!
<div style="border: 10px solid black">lalala</div>

If your situation is more complex than this you might want to look at
one of the box model hacks:
http://css-discuss.incutio.com/?page=BoxModelHack

Geoff



More information about the thelist mailing list