Click to See Complete Forum and Search --> : splitting a line of text


FuzzDuckie
09-26-2003, 08:02 AM
Hello...I'm new to this area. Taking a short break from Visual Basic and decided to see if I could do a HTML resume to put up under my ISP (Comcast). I want to keep the resume as basic as possible.

Everything is looking ok so far but I am wondering how I can code a line where part of the text is left justified (co. name and city/state) and the last part, the dates worked is right justified?

IE:

<B>COMPANY ABC</B>, Denver CO <space in here> 1/2000-4/2000

Hope that makes some kind of sense.

Thanks

DaveSW
09-26-2003, 10:04 AM
<p style="text-align:left;">Left text
<span style="float:right;">right aligned text</span></p>

like that?

Or You could use a table, etc.

FuzzDuckie
09-26-2003, 10:27 AM
tried it but the right aligned text would go on the next line rather than keeping it on the same line.

I may go with the table and use invisible lines for those sections....

Thanks!

pyro
09-26-2003, 10:30 AM
How about this:

<div style="width: 200px;">
<span style="float: left;">Left text</span>
<span style="float: right;">right aligned text</span>
</div>

FuzzDuckie
09-26-2003, 12:58 PM
Pyro!!! thank you! that worked very well. I had to change the 200 to something else to make it work for me better but it worked!

Thank you....!

pyro
09-26-2003, 02:24 PM
You are very welcome... :)

DaveSW
09-27-2003, 10:47 AM
Originally posted by DaveSW
<p style="text-align:left;">Left text
<span style="float:right;">right aligned text</span></p>


LOL - it was the wrong way round. the left aligned text should have been after the span for it to work.

:(