CSS Tutorial For Beginners 41 - Block-level Elements
33.7 هزار بار بازدید -
9 سال پیش
-
Yo my fellow web ninjas!
Yo my fellow web ninjas! In this CSS tutorial for beginners we're going to explore what a block-level element is. I've mentioned already that the box-model governs the spacial properties (padding, margin, width, height & border) of all block-level elements, but not yet talked about what a block level element is!
A block level element is one which occupies the full horizontal width of its parent element.
An in-line element stacks from left to right... IN LINE. Hence the name :P. Box model properties do not apply to in-line elements, but we can set the display types of these elements to inline-block, so that we can control the spacial properties of them too!
Anyway, peace out, have fun & keep coding :).
LINK TO LIST OF BLOCK-LEVEL AND IN-LINE ELEMENTS - http://www.w3resource.com/html/HTML-b...
SUBSCRIBE TO CHANNEL - @netninja
========== CSS for Beginners Playlist ==========
CSS Tutorials For Beginners
========== HTML Basics Course ==========
HTML Tutorials For Beginners
========== The Net Ninja ============
For more front-end development tutorials & to black-belt your coding skills, head over to - @netninja or http://thenetninja.co.uk
========== Social Links ==========
Twitter - @TheNetNinja - Twitter: thenetninjauk
A block level element is one which occupies the full horizontal width of its parent element.
An in-line element stacks from left to right... IN LINE. Hence the name :P. Box model properties do not apply to in-line elements, but we can set the display types of these elements to inline-block, so that we can control the spacial properties of them too!
Anyway, peace out, have fun & keep coding :).
LINK TO LIST OF BLOCK-LEVEL AND IN-LINE ELEMENTS - http://www.w3resource.com/html/HTML-b...
SUBSCRIBE TO CHANNEL - @netninja
========== CSS for Beginners Playlist ==========
CSS Tutorials For Beginners
========== HTML Basics Course ==========
HTML Tutorials For Beginners
========== The Net Ninja ============
For more front-end development tutorials & to black-belt your coding skills, head over to - @netninja or http://thenetninja.co.uk
========== Social Links ==========
Twitter - @TheNetNinja - Twitter: thenetninjauk
9 سال پیش
در تاریخ 1394/04/15 منتشر شده
است.
33,774
بـار بازدید شده