HomeНаука и техникаRelated VideosMore From: Chris Walker

CSS how to: padding

14 ratings | 3501 views
This video shows how to use the padding property in CSS. This allows you control how much space appears between the edge of your HTML element and the content it contains. You can make all sides equal or you can make individual sides have different padding sizes. You can use the specific properties of padding-right, padding-left, padding-top, or padding-bottom, but the padding property can do all four at once. If you specify one measurement, it affects all sides. If you use two numbers, it'll pad top and bottom on the first number and second number does the sides. If you state four numbers in the CSS property all sides are affected in the order of top, right, bottom, and left. So they start at the top and go in a clockwise fashion. CSS padding is the opposite of margin. Padding puts space inside the element. Margin puts space outside the element's border. http://www.technoblogical.com/web-design/ Providing training since last Tuesday http://www.technoblogical.com Thanks for watching!
Html code for embedding videos on your blog
Text Comments (1)
FirstDigitalReich (5 years ago)
but how to apply this to a class id, the padding ex. left and right?

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.