3) Using CSS Grid
β This is the Shortest and easiest way to center a div tag! β
Just add the following 3 lines to the parent element and the child div tag will get centered automatically!
height: 100vh;
display: grid;
place-items: center center;
Great, now you know all the ways to center a div tag.π
Let me know if you know any other ways to center a div tag down below π or let me know if you have any questions!
And if you liked the thread, then consider sharing... It means a lot to me! β€
β’ β’ β’
Missing some Tweet in this thread? You can try to
force a refresh
β Make sure to build at least 5 - 10 Javascript projects before moving on to React.
2) Understand React Fundamentals:
>> Applications and uses of React
>> Declarative approach of React
>> Components
>> JSX in React.
>> Sending data to different components via props
>> CSS Styling in React
>> Splitting components.
>> Listening to Events
>> Conditional Rendering