Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu December 20, 2022 › #css #Q&A

Which property should be used for setting the left margin of an element?

The margin-left CSS property sets the margin area on the left side of an element. Example :

div{
margin-left:10px
}
save
listen
AI Answer
1 Answer
Write Your Answer
  1. margin-right property is used to set right margin of an element.  margin-left property is used to set left margin of an element.
    margin-top property is used to set top margin of an element. 
    margin-bottom
     property is used to set bottom margin of an element. 

    margin property is used to set margin of an element.  Syntax ---- margin : top right bottom left;
    Example : 
    #div{
    margin:5px 12px 45px 7px;
    }

    Reply Delete
    Share
loading
back
View All