mattshiao
08-26-2010, 11:25 PM
Hi,
I have the following html and inline css:
<div id="container" style="height: 34px; width: 100%; border:1px solid #333">
<span id="largeText" style="font-size: 22px">Large text</span>
<span id="smallText" style="font-size: 12px">Small text</span>
</div>
I want to
(1) Vertically align both largeText and smallText to the center of the div
(2) Horizontally largeText will be attached to the left with 5px margin on left and smallText will be attached to the right with 5px margin on right.
Please help
I have the following html and inline css:
<div id="container" style="height: 34px; width: 100%; border:1px solid #333">
<span id="largeText" style="font-size: 22px">Large text</span>
<span id="smallText" style="font-size: 12px">Small text</span>
</div>
I want to
(1) Vertically align both largeText and smallText to the center of the div
(2) Horizontally largeText will be attached to the left with 5px margin on left and smallText will be attached to the right with 5px margin on right.
Please help