
January 7th, 2013, 03:11 PM
|
 |
Contributing User
|
|
Join Date: Aug 2011
Location: The Pleiades
|
|
Very good question. Just spent about 20 minutes playing around with different ways but I can only find one. That is to add a margin-top to text which is smaller in size than the one you want it aligned with.
I'm not sure if this is what you want because this is aligning it horizontally whereas you wanted it vertically aligned but you were floating your <a> tags left and right so I just presumed you meant horizontally.
Here is the code:
Code:
<div class="di">
<a href="#" style="font-size:88px;float: left;">First Text</a>
<a href="#" style="font-size:52px; float: right; margin-top: 10px;">Second Text</a>
</div>
Does this help at all?
I'd be eager to see if anyone did get this working correctly. Although this works, if you have variant font sizes than you will have to set each margin individually.
Also, I aligned the second <a> to the top of the first <a>. If you want it aligned to the bottom (which I imagine), just add the extra margin-top.
Let me know!
Regards,
NM.
__________________
"WERE NOT WORTHY!"
"WERE NOT WORTHY!"
Last edited by Nanomech : January 7th, 2013 at 03:37 PM.
|