Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alinement 1

Status
Not open for further replies.

stevanb

Technical User
Oct 4, 2002
58
0
0
US
I am trying to design the following script and for some reason i made a mistake and the alignment looks BAD some look left and some look right what i wanted to do is have them centered on the page But everytime i think i have it right it looks worse

THxs for Helping

STEVE

<!----- START ALL LINK DATA ----->
<CENTER>
<!----- Navigation Table Start ----->
<TABLE width=&quot;95%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<TR><TD align=center vAlign=top><A href=&quot;./&quot;>Home</A> |
<A href=&quot;./?id_category={CAT_ID}&act=add_new&quot;>Add a Site</A>|
<A href=&quot;./?act=modify_site&quot;>Modify Site</A> |
<A href=&quot;./?act=new&quot;>What's New</A> |
<A href=&quot;./?act=top_cool&quot;>What's Cool</A><br>
<A href=&quot;./?act=top_rate&quot;>Top Rated</A> |
<A href=&quot;./jump.php?id=random&quot; target=new>Random Link</A> |
<A href=&quot;./?act=subscribe&quot;>Subscribe</A>
</TD></TR>
</TABLE>
<!----- /Navigation Table Finish ----->
<BR>
<!----- START ADD NEW SITE Data ----->
<TABLE border=&quot;0&quot; width=&quot;98%&quot;>
<TR><TD><b>{SUB}:</b></TD></TR>
<TR><TD>
<!-- BEGIN addnewblock -->
<FORM action=./?act=add_new method=post>
<TABLE border=0 cellPadding=2 cellSpacing=0 width=&quot;100%&quot;>
<TR><TD align=right vAlign=top><B>Title:</B></TD>
<TD><INPUT name=title size=40></TD></TR>
<INPUT type= &quot;hidden&quot; name=id_category value={CAT_ID}>
<TR><TD align=right vAlign=top><B>URL:</B></TD>
<TD><INPUT name=url size=40></TD></TR>
<TR><TD align=right vAlign=top><B>Keywords:</B></TD>
<TD><INPUT name=keywords size=40></TD></TR>
<TR><TD align=right vAlign=top><B>Description:</B></TD>
<TD><TEXTAREA cols=34 name=description rows=6 wrap=virtual value=&quot;&quot;></TEXTAREA></TD></TR>
<TR><TD align=right vAlign=top><B>Contact Name:</B></TD>
<TD><INPUT name=&quot;name&quot; size=40></TD></TR>
<TR><TD align=right vAlign=top><B>Contact Email:</B></TD>
<TD><INPUT name=&quot;email&quot; size=40></TD></TR>

<TR><TD align=right vAlign=top><B>Which page have you placed our link on?</B></TD>
<TD><INPUT name=&quot;site&quot; size=40></TD></TR>
<TR><TD align=right vAlign=top><B>Your site will be listed within 4 days. You will receive a confirmation email to let you know that this has been done.
</B></TD>






<TR><TD align=center><INPUT type=submit value=&quot;Add Website&quot;></TD></TR></FORM>
</TABLE>
<!-- END addnewblock -->
</TD></TR>
</TABLE>

<!----- /FINISH ADD NEW SITE Data ----->
 
Define column widths:

<!-- BEGIN addnewblock --><FORM action=./?act=add_new method=post><TABLE border=1 cellPadding=2 cellSpacing=0 width=&quot;100%&quot;><TR><TD align=right vAlign=top width=50%><B>Title:</B></TD><TD width=50%>....

These width tags are just a start to cleaning up your tables. Use a WYSIWYG HTML editor to set up your page. If you need a free one, check out webattack.com
 
To jimoblak
Thxs very much it worked great!

This was my first try and had a problem on the alginment but now all ok.


Thxs Again STEVE
 
also your form tag is nested badly, that might mess up with some browsers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top