Quote:
Originally Posted by louie did you try giving the nested div a class? Code: <style type="text/css">
.main{border:1px solid #cccccc; width:500px; padding:5px;}
.sec{border:1px dashed #000000;}
</style>
<div class="main"> main div
<div class="sec">
nested div
</div>
</div>
|
in the above example "sec" will inherit the width and padding properties.
so if you want to change the width then you will to explicitly state it
in .sec