Answers for "center a div in react"

1

react place div at center of page

<div style={{display: 'flex',  justifyContent:'center', alignItems:'center', height: '100vh'}}>
    <h1> I am centered </h1>
</div>
Posted by: Guest on October-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language