[thelist] css percentages

Kae Verens kverens at contactjuggling.org
Tue Feb 25 05:18:00 CST 2003

Kae Verens wrote:
> 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.

you know - I forgot to propose a solution...

how about this:

<div style="margin:1px;border:1px solid #f00">lalala</div>

This pulls in the box enough that the border brings it flush to 100% again.

Kae Verens               _______\_   webworks.ie
pay:  www.webworks.ie       _____\\__   webhosts
play: www.contactjuggling.org  ___\\\___  design
  kae: kverens.contactjuggling.org _\\\\____ code

More information about the thelist mailing list