Forum : about padding and width
Brief description  about Online courses   join in Online courses
View Khaja  Naquiuddin 's Profile

about padding and width

what is the difference between padding and width.

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.).
Asked by Khaja Naquiuddin | Jun 30, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi

The padding clears an area around the content (inside the border) of an element. The padding is affected by the background color of the element.

If you give padding automatically width also will change

Regards
Jul 1, 2010