Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css center

// example 1 
div { display: grid; place-items: center; }

// example 3
div{ display:flex; align-items:center; }

// example 3
div { width: 100%; margin: 0 auto; }
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #css #center
ADD COMMENT
Topic
Name
2+6 =