backside
09-27-2005, 02:19 AM
Hello,
Theres probably a pretty simple answer to this question but I've wasted too much time already.
I have a div element which contains 2 child div elements. I want the first child div element to be aligned to the left and the second div child element to be centered on the page.
Here's some code:
<div style="background-color: #F0F0F0;">
<div style="display: inline; font-size: small; text-align: left"> aligned left </div>
<div style="display: inline; font-size: medium; text-align: center;"> centered </div>
</div>
Note I'm using display inline because I don't want it to break between each div (meaning I want the contents on both divs displayed on one line).
-Backside
Theres probably a pretty simple answer to this question but I've wasted too much time already.
I have a div element which contains 2 child div elements. I want the first child div element to be aligned to the left and the second div child element to be centered on the page.
Here's some code:
<div style="background-color: #F0F0F0;">
<div style="display: inline; font-size: small; text-align: left"> aligned left </div>
<div style="display: inline; font-size: medium; text-align: center;"> centered </div>
</div>
Note I'm using display inline because I don't want it to break between each div (meaning I want the contents on both divs displayed on one line).
-Backside