Need some basic HTML help... any HTML gurus in here?

thahenchman

Member
Jun 9, 2004
148
0
0
How do you align two different text strings, one on the left side and one on the right side of the same line?

Is it possible to do this without using tables?

Thanks!
 

thahenchman

Member
Jun 9, 2004
148
0
0
I'm trying to make it look like this... pretend the [ ] are the edges of the screen

[text here, aligned left ------------------------empty/blank space------------------------------- text here, aligned right]
 

DeRusto

Golden Member
May 31, 2002
1,249
0
86
< html>
< body>
< span style="float: left">here is some text on the left< /span>
< span style="float: right">here is some text on the right< /span>
< /body>
< /html>
 

NightCrawler

Diamond Member
Oct 15, 2003
3,179
0
0
Originally posted by: DeRusto
< html>
< body>
< span style="float: left">here is some text on the left< /span>
< span style="float: right">here is some text on the right< /span>
< /body>
< /html>


The master has shown us the way.
 

thahenchman

Member
Jun 9, 2004
148
0
0
Originally posted by: DeRusto
< html>
< body>
< span style="float: left">here is some text on the left< /span>
< span style="float: right">here is some text on the right< /span>
< /body>
< /html>

awesome thanks derusto
 

voodoochylde

Senior member
Feb 19, 2004
305
0
71
<div align="left">left aligned text</div><div align="right">right aligned text</div>...there are several ways to do this...My way will involve CSS and z-positioning to keep it on the same line, however
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
Originally posted by: voodoochylde
<div align="left">left aligned text</div><div align="right">right aligned text</div>...there are several ways to do this...My way will involve CSS and z-positioning to keep it on the same line, however

"align" is a deprecated attribute.. DeRusto's technique is the correct way of doing this :)
 

voodoochylde

Senior member
Feb 19, 2004
305
0
71
:p My method isn't deprecated...it's "delicately aged and slightly less common" :p Thanks for the heads up though, I haven't actually worked with this in well over a year
 

Kenji4861

Banned
Jan 28, 2001
2,821
0
0
Originally posted by: thahenchman
Originally posted by: DeRusto
< html>
< body>
< span style="float: left">here is some text on the left< /span>
< span style="float: right">here is some text on the right< /span>
< /body>
< /html>

awesome thanks derusto

Aww cool, I've always been putting it into a table with two columns to get this effect. Will use this from now on. Thanks DeRusto