+ 1
What is padding?
I am learning block elements and I wanna know what padding is.
3 ответов
0
create a empty div tag and enter few words in it. assign width and height and give padding and margin to the div tag. (background-color for better visibility).
once you done this inspect it with any browser by right clicking on it, for example in Firefox there is a css window where u can see boxes for margin and padding change the values u will understand quickly..hope this will helps you
0
Padding is the distance between your element (text from a paragraph for example) and the border of that element. Is you don't set a border that padding will be space defined by you, between your element and other elements.