CSS Tutorial for Beginners Part 8 - CSS Margins | Learn Web Technologies

Опубликовано: 24 Март 2026
на канале: Learn Web Technologies
23
2

Previous Video : CSS Borders
   • CSS Tutorial for Beginners Part 7 - CSS Bo...  

CSS Playlist
   • CSS Tutorial for Beginners  

HTML Playlist
   • Html tutorial for beginners  

Text Version for same
http://learnwebtechnology.ga/2019/05/...

Sign up for my newsletter to receive weekly updates
http://bit.ly/2RRFktj

Join our facebook page
bit.ly/2OKQYV7

CSS Margins
CSS margin property are used to create space around the elements, outside of any defined borders.
There are properties for setting the margin for each side of an element(top,right,bottom,left).

Margin Individual Sides
CSS has properties for specifying the margins for each side of an element
margin-top, margin-right, margin-bottom and margin-left

Margin Shorthand Property
The margin property is a shorthand property for the following individual margin properties

Margin auto Value
If you want to make an element horizontally center then you have to use margin auto value.
The element have a specified width, and the remaining space will be equally split between the left and right margins
----------------------------------------------------------------------------------------------------------------

#LearnWebTechnologies #CSS #CSSTutorialForBeginners