Hi. I wish I had an example to show you for this, but I'll try to make it as clear as possible.
I have a page of headings and values -ie
Book - Carrie
Author - Stephen King
Pages - 300
I don't particularly care for this format, so I was hoping to do something along the lines of
     Book-Carrie
   Author-Stephen King
   Pages-300
So that all the text on the RIGHT is justified LEFT, regardless of how long the first title is. Any ideas on how to do this?
Text Formatting question.. of course..
Hi Hoborg,
I think what you are after is something like this:
.row{clear:both; padding-top:15px;} .lft{float:left; text-align:right; width:120px;} .rgt{float:left; text-align:left; padding-left:10px; width:70%;} <div class="row"> <span class="lft">Book -</span> <span class="rgt">Carrie</span> </div>
You may have to play around with the widths etc, make sure the row is wider then the two spans together.
If you temporarily add different coloured borders to the classes it makes it easier to see how they fit together while you experiment with the widths.
Text Formatting question.. of course..
WOW!!!! I can't believe it! That's EXACTLY what I wanted.
Sorry for the extreme gratitude, but I've been wrestling with this for a while. It's not a hard question, by any means, but I have this ridiculous program that outputs HTML via a DLL, so you can't physically format it at all.
Thanks again!!
(The real question is why didn't the board send me an email when you replied? I was waiting on pins and needles before I decided to check manually...)
D
Notify me
Great I'm glad you found what you want.
As for the board not emailing you.
There is a link on the bottom left of the forum or a check box in the post a reply form which is meant to set the board up notify you.
I haven't done any testing on this I get too many email anyway and I check the forum as often as I can.
Text Formatting question.. of course..
Thanks. I was a doofus and had the wrong email there...
One last question, while you are being so helpful
As soon as the text (in my example "Carrie") wraps around to the second line, it begins at the start of the frame, underneath the heading ("Title") any ideas on how to fix this? I'm not too familiar with "clear" and "float"
Thanks!
Text Formatting question.. of course..
Nevermind!
oops