Vanessa023
12-06-2010, 02:33 AM
How do I have a DIV float in the centre of my page and have the text aligned within that DIV as left or justified?
I tried coding it into the CSS like so:
div.content { float:center; width:300px; text-align:left; }
And calling for it on my page:
<div class="content">
yada yada yada
</div>
One code seems to override the other... Is there a way to do this or am I dreaming? I'm sure if there is, it's very simple and I am very... lost, lol.
Thanks,
Vanessa
PS. It should also be noted that I am working in WordPress =)
I tried coding it into the CSS like so:
div.content { float:center; width:300px; text-align:left; }
And calling for it on my page:
<div class="content">
yada yada yada
</div>
One code seems to override the other... Is there a way to do this or am I dreaming? I'm sure if there is, it's very simple and I am very... lost, lol.
Thanks,
Vanessa
PS. It should also be noted that I am working in WordPress =)