This is a 2-step process.
step 1) center the paragraph on the page
step 2) make sure the text is left-aligned within the paragraph
Here is the html:
<p class="centered-paragraph">
This is some text</br>
Notice the paragraph is centered in the page,<br/>
But the text is left-aligned within the paragraph
</p>
Here is the css:
.centered-paragraph{
margin : 0 auto; /* step 1: center the paragraph on the page */
width: 400px; /* you have to give it a width, or else the browser thinks it's as wide as the whole page */
border : 1px solid black; /* i gave it a border just so you can see what's happening more clearly */
text-align : left; /* step 2, make sure the text inside the paragraph is left-aligned. this is the default, but it doesn't hurt to declare it exlpicitly */
}
You can play with it here if you like