Topic: 100% width in CSS (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10756" title="Pages that link to Topic: 100% width in CSS (Page 1 of 1)" rel="nofollow" >Topic: 100% width in CSS <span class="small">(Page 1 of 1)</span>\

 
jiblet
Paranoid (IV) Inmate

From: Minneapolis, MN, USA
Insane since: May 2000

posted posted 06-18-2002 23:56

Suppose you want something to be width: 100% of it's container, but it requires margin/padding/border of some sort. Is there any way to achieve this with a variable width container in a standards-compliant way? (Now I see why IE 5 gets the box model wrong).

-jiblet

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 06-19-2002 00:06

margin-left:10px;
margin-right:10px;

If you have a correct doctype, at least, though it might not be necessary, that should force the box to take up as much space as possible. Do *not* combine this with setting the width of the box.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu