DIGITAL MARKETING AGENCY

HELPING YOU BUILD YOUR BUSINESS STRONGER!

Align Text
KENNETH ERVIN YOUNG
KENNETH ERVIN YOUNG
Kenneth Ervin Young is a Business and Digital Marketing Coach, a Full-Stack Website Developer, a Georgia Institute of Technology Electrical Engineer, a Husband, and a Father. Kenneth resides in Tampa, Florida, USA.
All Posts

How to: Align Text

By adding whatever class or id you used to identify the text you wish to align (i will be using h1, h2, and h3 as an example) you will be able to align your text to the right, centered, or to the left.

Adding this code to the <style>

<span style=”background-color: var( –e-global-color-70b99f91 ); color: var( –e-global-color-21841390 );”></span>

h1 { text-align: center; }
h2 { text-align: left; }
h3 { text-align: right; }
And adding this text to the <body>
<h1>Heading 1 (center)</h1> <h2>Heading 2 (left)</h2> <h3>Heading 3 (right)</h3>
The h1 will be aligned to the center, the h2 will be aligned to the left, and the h3 will be right aligned.

SHARE THIS POST

Share on email
Share on linkedin
Share on facebook
Share on twitter
Share on pinterest
Share on whatsapp

RELATED POSTS