Hi,
It seems that if I put a div around a group of text, and then in css assign a 
width to it, then give it padding, then the padding increases the total width 
of the container by the padding amount. However, if I put an addition div in, 
then the padding doesn't increase the total width of the container. Why is this 
so? Have I just not read about it yet? Is one method better than the other, or 
just user preference?
Sincerely,
Brian

Please see below for examples.

Ex 1:
<div id="content"> 
<p> blah blah blah </p>
</div>

#content {
 padding: 50px 50px 50px 50px;
 }

Ex 2:
<div id="content"> 
<div>
<p> blah blah blah </p>
</div>
</div>

#content div {
 padding: 50px 50px 50px 50px;
 }
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to