CSS: Align Left — Make text or image aligned left with CSS

Believe it or not, though this is rather basic in CSS, someone just poked on Gtalk to ask how he could align a paragraph left in HTML as he could in Word.

Here goes a quick post for the solution:

p {text-align:left;} /* a generic styling rule for all p tags to align inner text left */

Just change ‘p’ to whatever selector you need.

There you go, CSS text-align is the rule to go! Other than that, you can also align text right by text-align:right or center by text-align:center.

Want to know how to right align or center align things in CSS?

2 thoughts on “CSS: Align Left — Make text or image aligned left with CSS”

  1. Pingback: CSS: Align Right – Make text aligned right in HTML page

  2. Pingback: CSS: Align Center – Center Align Texts or Images in HTML and CSS

Comments are closed.

Scroll to Top