1) Wrap a segment of your HTML code in a container such as <div>.

2) Targeting that container, set the width to whatever you wish. (Preferably somewhere around 700-800px, but it may vary.)

3) Set the margin-left and margin-right to “auto”. Though its better if you do the shorthand version with “margin: 0 auto;”.

4) Elements in that container are now centered, and also auto-scale to the scaling of the tab.

By Levi

Leave a Reply

Your email address will not be published. Required fields are marked *