The above solution you submitted was great. Few changes must be implemented to make your solution better.
- Use rem instead of px.
- Use h tags i.e, h1,h2...,h6 instead of leaving them as it is. h tags marks the priority of the text.
- Last point is just a suggestion that you can use flex to make your solution more responsive and using flex will make your life easier. For E:g, To center a div you just have to set
.container{
display: flex;
justify-content: center; // To center the main axis x-axis if row and y-axis if column
align-items: center; // To center the secondary axis
}
Hope you will like the feedback, if you find it helpful then upvote me. Good Day!!
0