ArtOfWarfare
Jun 25, 2008, 08:27 AM
Hey.... I want part of a line to be left aligned and the other part right aligned... how do I do something like this?
I'm making a table... here's one of the cells...
<td>AoW <align=right>(0/0)</align><br>3007 7753 9037</td>
this doesn't do anything though.
I also tried
<td>AoW <p align=right>(0/0)</p><br>3007 7753 9037</td>
but this put (0/0) on a different line.
I want the name on the first line left aligned, the record on the same line but right aligned, and then the number on the line below them.
I looked through a list of HTML tags but none of them seem to be what I'm looking for...
Edit: Hmmm... well... I'd rather a less complicated looking solution... but this is what I did...
<td><table width="100"><tr><td>AoW</td><td align="right"></td><td align="right">(0/0)</td></tr></table>3007 7753 9037</td>
It got the results I wanted... but it really seems like there's probably a tag that could easily align it to the right side that I just over looked...
2X Edit: Ok, I got a much cleaner looking solution. Still more complicated than it probably needs to be but...
<td>AoW<table align=right><tr><td>(0/0)</td></tr></table><br>3007 7753 9037</td>
the record gets a one celled table all to itself...
3X Edit: Yes! I think I finally have success!
I can't think of a better way I could do this...
<td>AoW<object align=right>(0/0)</object><br>3007 7753 9037</td>
looks good and compared to the other things I tried it's pretty compact and looks easy to edit later if it should be necessary.
...
And in an hour not a single person offered help. With 2 dozen people browsing this specific section, not a single person offered help... in an hour... thanks a lot.
Well, if anyone else ever wants to do something like this with aligning text to both the left and right, then you want to use an object tag. Like in my example,
<td>AoW<object align=right>(0/0)</object><br>3007 7753 9037</td>
4X Edit: Dammit. I just took a look at this in Firefox to make sure it looks good in all browsers... object aligns itself to the bottom by default it looks like. Hopefully all I have to do is align the object to the top right...
But something else I noticed...
Firefox screws empty cells all up. It merges multiple empty cells together. The whole idea of using a table is so people can easily look across any row and see everything about the person... if I don't have any info on a person until the 3rd column then it's kind of difficult seeing what data goes with each person.
Anyone know how to force Firefox to draw in cell borders on a table?
I'm making a table... here's one of the cells...
<td>AoW <align=right>(0/0)</align><br>3007 7753 9037</td>
this doesn't do anything though.
I also tried
<td>AoW <p align=right>(0/0)</p><br>3007 7753 9037</td>
but this put (0/0) on a different line.
I want the name on the first line left aligned, the record on the same line but right aligned, and then the number on the line below them.
I looked through a list of HTML tags but none of them seem to be what I'm looking for...
Edit: Hmmm... well... I'd rather a less complicated looking solution... but this is what I did...
<td><table width="100"><tr><td>AoW</td><td align="right"></td><td align="right">(0/0)</td></tr></table>3007 7753 9037</td>
It got the results I wanted... but it really seems like there's probably a tag that could easily align it to the right side that I just over looked...
2X Edit: Ok, I got a much cleaner looking solution. Still more complicated than it probably needs to be but...
<td>AoW<table align=right><tr><td>(0/0)</td></tr></table><br>3007 7753 9037</td>
the record gets a one celled table all to itself...
3X Edit: Yes! I think I finally have success!
I can't think of a better way I could do this...
<td>AoW<object align=right>(0/0)</object><br>3007 7753 9037</td>
looks good and compared to the other things I tried it's pretty compact and looks easy to edit later if it should be necessary.
...
And in an hour not a single person offered help. With 2 dozen people browsing this specific section, not a single person offered help... in an hour... thanks a lot.
Well, if anyone else ever wants to do something like this with aligning text to both the left and right, then you want to use an object tag. Like in my example,
<td>AoW<object align=right>(0/0)</object><br>3007 7753 9037</td>
4X Edit: Dammit. I just took a look at this in Firefox to make sure it looks good in all browsers... object aligns itself to the bottom by default it looks like. Hopefully all I have to do is align the object to the top right...
But something else I noticed...
Firefox screws empty cells all up. It merges multiple empty cells together. The whole idea of using a table is so people can easily look across any row and see everything about the person... if I don't have any info on a person until the 3rd column then it's kind of difficult seeing what data goes with each person.
Anyone know how to force Firefox to draw in cell borders on a table?
