Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react place div at center of page

<div style={{display: 'flex',  justifyContent:'center', alignItems:'center', height: '100vh'}}>
    <h1> I am centered </h1>
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #place #div #center #page
ADD COMMENT
Topic
Name
9+3 =