@numan-iftikhar
Posted
Hi, you did fantastic work with your design. It's almost pixel perfect. Here are some suggestions:
- Use
main
tag to wrap all the content - Get your HTML right
- Don't use unnecessary
div
tags - Always use
rem
instead ofpx
for settingfont-size
property - Avoid
text-align: center
in every element
Marked as helpful
@amch123
Posted
Hi @numan-iftikhar, please tell me how I can improve text-align: center?
@vanzasetia
Posted
@amch123 You can put the text-align: center
on the main
element. 🙂
Marked as helpful
@amch123
Posted
@vanzasetia Done!
@vanzasetia
Posted
@amch123 Great! 👏
@numan-iftikhar
Posted
@amch123 You can add text-align: center
to the parent element, in this case, the body
or main
element (if you use it). All the content inside the parent element will be centered :)