When I give some value for padding, it increases the width of a particular 'div'. Can't we give internal padding by keeping the width fixed (I mean is there any way to keep the width fixed though we increase the padding value).
07-01-2010, 01:16 AM
I would do something like this:
<div style="width: 300px">
<div style="padding: 20px 20px 20px 20px">
your content for this div
in this case, the overall width will remain at 300px if you change the padding on the inner div.