Trevon rawls Trevon rawls -5 years ago 109
CSS Question

Centering issue with HTML & CSS

currently my issue is this:
Browser: Chrome

For some reason, it's not centering properly. Below you'll find my code:


<div id="wrapper">
<h1>Test Text</h1>
</div> <!-- wrapper div end -->


#wrapper {
width: 100%;
max-width: 960px;
margin: 0 auto;

Answer Source

Use text-align: center; to center the heading text within the div.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download