Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Aligning text and links
10-06-2007, 07:46 PM #1
- Join Date
- May 2007
- Thanked 0 Times in 0 Posts
Aligning text and links
I have the following HTML which I can't get to line up the way I have in mind. What I'd like is for there to be two lines - one with text followed by a link, and the next with just a link.
Both lines should be right-aligned within the block with class "inner".
<div class="links"> <div class="inner"> <div class="group"> Text describing link1 <a href="link1.html">Link 1</a> </div> <a href="link2.html">Link 2</a> </div> </div>
I've tried multiple combinations of markup but nothing seems to work. Is the design the way I described above possible?
10-06-2007, 11:20 PM #2
- Join Date
- Feb 2007
- Thanked 56 Times in 55 Posts
Spans, paragraphs and floats work.
<div style="float:left; width: 400px; ">
<p style = "float:right">
text, text, text here
<img blah />
<a blah>what eve rwh ateve rwh ateve rwhat ever</a>
<span style="float:right; clear:both;"><img blah2 /></span>
Last edited by jlhaslip; 10-06-2007 at 11:32 PM.