Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

margin on absolute positioned element

#absolute-element{
	position: absolute;
    inset: 0 /*also same as left, right, top & bottom set to 0*/
    margin: auto;
 }
 
 /* Can still overide it with left, right, top & bottom*/
 
PREVIOUS NEXT
Tagged: #margin #absolute #positioned #element
ADD COMMENT
Topic
Name
1+6 =