@thedoodlebakery
Posted
It looks good. Try playing around with your padding for the white box. Probably adding more padding to the top and bottom vs the left and right. Start someone where with something like padding: 10px 15px; The first number in that style is the top and bottom and the second number applies to the left and right.
Marked as helpful
@Codelon2
Posted
@thedoodlebakery first of all thank you for your response:) I retried it once again and it looks better, but i want to understand one thing. How can i center the white box? By simply adding margin to its borders? Or padding in the body? And if I’ll specify them in px, it’ll be static.. And i want to be at the center on all mobiles..
@thedoodlebakery
Posted
@Codelon2 I apologize for the delayed response. Try margin: 0 auto;. As long as it has a width, setting the right and left margins to auto should perfectly center the box.