Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

align absolute div center

.container {
  left:0;
  right:0;

  margin-left: auto;
  margin-right: auto;

  position: absolute;
  width: 40%;

  outline: 1px solid black;
  background: white;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #align #absolute #div #center
ADD COMMENT
Topic
Name
9+2 =