This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Neeraj Pandey
about 10 years

What is all about the padding attribute?

<td style="padding:5px;">King Kong</td>
<td style="padding:5px;border-left:1px solid black;">1933</td>

Answer 52d411199c4e9d1dfe007175

0 votes

Permalink

you will get padding later, but it is to make it look nice (which fails in this case) http://jsbin.com/iYukOto/2/edit take a look at this code, if you might noticed i used padding to demonstrate how it works. as you can see, the padding cause the hello to be pushed to the right and the bottom, and the element is larger (because it has to compensate for the additional space)

points
Submitted by stetim94
about 10 years