Monday, August 19, 2013

Getting text to display to the left and right of a text-align: center

Getting text to display to the left and right of a text-align: center

Alright so I have
<div id='1'></div>
<div id='2'></div>
<div id='3'></div>
Only one word will go into each div.
and I want to word from #2 to be in the middle of the screen using
text-align: center; with the word in #1 being displayed directly to the
left of #1 and the #3 directly to the right of #2.
I have been trying different css for a while, but to no effect.
Hoping someone has a simple answer.

No comments:

Post a Comment