Is there a way to center text that is left aligned? I'm struggling to achieve the following effect:
This text
is
left aligned.
This text
is
left aligned
and in
the center (isn).
How can I achieve this within a div? I have attempted the commonly suggested method of using text-align:center in a parent div and then text-align: left in the child div, but it doesn't seem to work. Here is an example: http://codepen.io/nrojina0/pen/OXGdXJ
div#stores {
font-size: 1.25em;
width: 100%;
text-align: center;
border: 1px solid black;
}
div#storesleft {
display: inline-block;
float: left;
width: 33%;
text-align: left;
margin: 0 auto;
border: 1px solid black;
}
<div id="stores">
<div id="storesleft">
Boo and Roo's
<br>112 E. Moore St.
<br>Southport, NC 28461
<br>(910)363-4275
<br>
</div>
</div>