18/03/2024 Education - Training
In CSS margins are used to control space around an HTML element.
Margins create space between other element and browser window
For individual sides(top, bottom,right,left) we can set different sizes of margins
Margins are completely transparent and doesn't have any background color
Margin properties can have the following values:
Length in cm, px, pt, etc.
Width % of the element.
Margin calculated by the browser: auto.
margin properties:
margin-top:Indicates the margin on the top of an element.
margin-right: Indicates the margin on the right side of an element.
margin-bottom:Indicates the margin on the bottom of an element.
margin-left: Indicates the margin on the left side of an element.
Note: The margin property allows negative values.
"HTML and CSS: the building blocks of the web! Master these essential frontend technologies with our courses in Mumbai. From structuring web pages to ...
TechnoBridge offers the Full Stack Developer Course with 100% placement assistance in Pune. Our Full Stack Developer Course is structured according to...
Are you looking to transition into a high-growth IT role or strengthen your skills in modern software development practices? If you're in Bangalore, p...
Looking to become a skilled Python Full Stack Developer in Indore? Join our expert-led course at Ahmedabad Computer Education and master both frontend...
More Details