Text Not Centering

David Schure
David Schure used Ask the Experts™
on
Text not centering.

<h2>Sign-up for updates! Join Alessandro's mailing list!</h2>

Open in new window


h2 {
	font-family: Arial, Helvetica, sans-serif;
	color: #f6e5d5;
	text-align: center;
	font-size: 22px;
}

Open in new window


even though h2 style is set to center.  It's going left.

http://www.mediascrubber.com/index.html
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
This is the style on the site
h2 {
	font-family: Arial, Helvetica, sans-serif;
	color: #f6e5d5;
	text-align: left; /* <==== CHANGE TO CENTER */
	font-size: 22px;
}

Open in new window

You need to check styles.css - it does not look like the text-align: center has been set properly.

Author

Commented:
Thank you Julian!
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
You are welcome.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial