CSS Tutorial For Beginners 38 - Padding

preview_player
Показать описание
Hey all, in this CSS tutorial for beginners, we'll take a closer look at the padding property, and padding short hand notation. Padding in CSS controls the internal space of an element. It is the space between the border/outer edge of an element, and the content within it.

Peace out, have fun & keep coding :).

========== CSS for Beginners Playlist ==========

========== HTML Basics Course ==========

========== The Net Ninja ============

========== Social Links ==========

Рекомендации по теме
Комментарии
Автор

At 3:50, the 20% value is relative to width of the container type.The div in this case is a block-level element, so unless the width is specified, width will always be computed to take 100% of the block .So the padding applied will be (computed width of the div block) *(0.20).

bharatdave
Автор

in 3:50 20% referred to the width of the #main-content?? is that right?

salehabuhussein
Автор

when you save the code just go to chrome and refresh the page :D

himapop
Автор

I don't understand what is the 20% mean. It is 20% for what element? Could you please explain more.

ruiwang
Автор

did anyone realize that the thumbnail for this "padding" tutorial is a bra. I see what u did there...

anhnguyendavidson
Автор

the people who like these videos are not they are cowdogs

billgates