Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

aligne center css

.container {
  font-family: arial;
  font-size: 24px;
  margin: 25px;
  width: 350px;
  height: 200px;
  outline: dashed 1px black;
  /* Center child horizontally*/
  display: flex;
  justify-content: center;
}

.child {
  width: 50px;
  height: 50px;
  background-color: red;
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #aligne #center #css
ADD COMMENT
Topic
Name
9+5 =