This forum is now read-only. Please use our new forums! Go to forums
What does "padding:5px" do?
In HTML Basics III, in Lesson 10, Recap, there are “padding” tags in the style attributes for almost all the table data. What does this do? I took them off but it didn’t change anything.
Answer 52aeed1f548c35c231000585
1 vote
In simple words it’s the padding around the content of an element. It is simply the space between the content and the border of the element.
To know more about the CSS padding property see this https://developer.mozilla.org/en-US/docs/Web/CSS/padding
Answer 52a4701252f863e46b0053ba
0 votes
is the space between the text and the table borders
1 comments
Laveena Ramesh over 10 years
Ohh ok, Thank you so much :D! Ok. so I’ll need to increase the px much more to know the difference. Good day to you!
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
1 comments
Thanks a lot, Deepak! And thank you for the link too, would be helpful for more doubts of beginners like me :). Good day to you!