PDA

View Full Version : Really easy HTML question


iamaposer
8-30-02, 04:37 PM
I was wonder how to align a phrase to the right of the site. I have tried <p align="right"> but it puts the phrase on a new line which I don't want. I have never had to align anything to the right, so I don't know how to do it, lol. Anyways, if you guys know the code to align something to the right side of the page, but keep it on the same line, that would really help me out :).

Laurey
8-30-02, 04:47 PM
so.. you want something like this:

|text.. blah blah <SPACE> text aligned righton same row|

where | are the sides of the webpage?

if so.. the only way I'd know to do that is w/a table.. as the <P> tag means 'new paragraph' it's intended purpose is to give a page break. to do this w/a table:

<TABLE BORDER="0" WIDTH="100%">
<TR>
<TD WIDTH="50%" VALIGN="top">text.. blah blah</TD>
<TD WIDTH="50%" ALIGN="right" VALIGN="top">text aligned right on same row</TD>
</TR>
</TABLE>

the vertical aligns (VALIGN) probably won't be necessary.. but I put 'em in just in case.

if thats NOT what you wanted.. well then.. Im just batting 1,000 today (btw.. exactly WHAT does that mean? taking 1,000 swings w/out hitting anything or what??).

-L

iamaposer
8-30-02, 04:55 PM
Ha ha, batting 1,000 means hitting 100% of the times that you go up to bat. Its actually 1.000. I bat about .050 but I am a pitcher so I am expected to bat crappy :).

Anways, the things that I want to align are in a table, so I don't really know if I wanna mess with that. I was using &nbsp to make the spaces, but I want to take those out because it is a hassle and makes my source look cluttered (I make my source neat with little <!--notes --> and such all in it) :). The site where I am trying to change the alignment is at http://poserbabble.com/music.shtml
and if you click on the S you will see
"Saves the day - Stay what you areRead The Review"
I want the "Read the review on the right side of the table it is in. I don't know if that helps explain my question or just gives people more of a hassle to help me, but there it is :)

SteveS235
8-30-02, 05:11 PM
Find this in your code:

<td colspan=2 bgcolor="#6787c6">
<center><a href name=#S></a><font size=4>S</font></center><BR><BR>

<font color=darkblue>Saves the Day - Stay What You Are</font><right><a href="music/savesthedaystaywhat.shtml">Read the Review</a></p><BR>

</td>



And replace it with this:

<td colspan=2 bgcolor="#6787c6">
<center><a href name=#S></a><font size=4>S</font></center></td><BR><BR>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><!-- Row 1 -->
<td align="left">Saves the Day - Stay What You Are</td>
<td align="right"><a href="music/savesthedaystaywhat.shtml">Read the Review</a></td>
</tr>
<tr><!-- Row 2 -->
<td align="left">&nbsp;</td>
<td align="right">&nbsp;</td>
</tr>

</table>

You can use this for all of the letters. The rows would be for each individual song. I just put the comments in so that it is easier to follow.

Laurey
8-30-02, 05:13 PM
After looking.. I'm going to stick w/my first assumption, except add in a 'nested' table instead of just a table.

Nested tables are VERY common, you aren't 'breaking code' when you use them. If you like to keep clean looking code.. just indent your nested tables so you can see them easily & you should be doing great :)

iamaposer
8-30-02, 05:28 PM
Whoa, all of those codes made my site go all crazy, lol. I put:

<td colspan=2 bgcolor="#6787c6">
<center><a href name=#S></a><font size=4>S</font></center></td><BR><BR>
<tr><!-- Row 1 -->
<td align="left" bgcolor="#6787c6">Saves the Day - Stay What You Are</td>
<td align="right" bgcolor="#6787c6"><a href="music/savesthedaystaywhat.shtml">Read the Review</a></td>
</tr>

And it seems to work how I want it. Thanks to both of you for helping me out :)

Laurey
8-30-02, 05:31 PM
anytime.. you may want to look into css for even more formatting abilities.. just an fyi :)