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

0 points
Submitted by Laveena Ramesh
over 10 years

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

Permalink

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

points
Submitted by Deepak Kamat
over 10 years

1 comments

Laveena Ramesh over 10 years

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!

Answer 52a4701252f863e46b0053ba

0 votes

Permalink

is the space between the text and the table borders

points
Submitted by Rafael D'Angelo
over 10 years

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!