This forum is now read-only. Please use our new forums! Go to forums
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
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)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency