@denielden
Posted
Hi faheem, the best and most control way is to use flex as you have already done.
Also I see that your body has margins and you had to use height: 97vh;
... each browser has default CSS, a good rule of thumb is to write CSS reset
according to your needs. Read more here -> css reset
Hope this help and happy coding ;)
Marked as helpful
@M0hamedF
Posted
@denielden it's good to know there is a better way thanks 😃