Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center a div

.container {
  width: 500px;
  height: 250px;
  margin: 50px;
  outline: solid 1px black;
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: black;
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #center #div
ADD COMMENT
Topic
Name
2+6 =