Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center div with flexbox

/* <div class="center">
* 		<div>some important stuff </div>
* </div>
*/

.center{
  display: flex;
  justify-content: center;
  align-items: center;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #center #div #flexbox
ADD COMMENT
Topic
Name
8+3 =