Basic HTML Question : How do I align something to left, while something else on right

Kenji4861

Banned
Jan 28, 2001
2,821
0
0
I have one line of text. I want part of it to be left aligned while another is right aligned. How do I do this?

My attempt so far.

<div align='left'>left</div><div align="right">right</div>
 

Drakkon

Diamond Member
Aug 14, 2001
8,401
1
0
<div>
<div align="left" style="float:left; width:50% ">
Some Text on the left</div>
<div align="right" style="float:right; width:50% ">
Some Text on the right</div>
</div>

btw this isn't that "basic" of a solution ;)
 

So

Lifer
Jul 2, 2001
25,923
17
81
Originally posted by: Drakkon
<div>
<div align="left" style="float:left; width:50% ">
Some Text on the left</div>
<div align="right" style="float:right; width:50% ">
Some Text on the right</div>
</div>

btw this isn't that "basic" of a solution ;)

I prefer the CSS solution, but tables are definitely the best for a simple single page app.
 

Kenji4861

Banned
Jan 28, 2001
2,821
0
0
Originally posted by: Drakkon
<div>
<div align="left" style="float:left; width:50% ">
Some Text on the left</div>
<div align="right" style="float:right; width:50% ">
Some Text on the right</div>
</div>

btw this isn't that "basic" of a solution ;)

After a long time, I figured out that this has some problems on older browsers.. like Mac IE 5.5
 

JoeKing

Lifer
Oct 9, 1999
10,641
1
81
Frames! Lots and lots of frames. With flashing animated gifs and midi music playing in the background1 :cool: