Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 07-03-2005, 04:28 AM alignment help
Experienced Talker

Posts: 32
Trades: 0
hello all

As you know im new to html and im playing arond making a simple site.

Im trying to get is so that when i use this
Code:
<td align="left">
<form>
User Name:<input type="text" name="user"> <br />
Password:<input type="password" name="password"> <br />
<input type="submit" value="Submit">
</form>
</td>
It will have User Name then the text area they type into and the password under that but when you look the 2 box's are not under each other they are off. how can i make it so it looks neat and so that they are aligned under each other?

Thanks in advance
zerox3k is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-03-2005, 04:55 AM
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
I had the same thing happen and i ended up putting everything in tables.

the form i made is here you can view the source and see if its something like what your looking for.

http://www.geocities.com/rsdmeangunz...formation.html

the only problem you might run into would be having like a header above the box's as i have Personal Information on the page i created. This being in the same table will move your box's as far as the header is. Use nested tables and it should work how you want it to.
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Old 07-03-2005, 06:17 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
Try:

Quote:
<td align="left"><table>
<form>
<tr><td>User Name:</td><td><input type="text" name="user"></td></tr>
<tr><td>Password:</td><td><input type="password" name="password"></td></tr>
<tr><td colspan=2 align=center><input type="submit" value="Submit"></td></tr>
</form>
</table>
</td>
If you want to add an info line above the User Name input simply use:
Quote:
<tr><td colspan=2 align=center>Whatever you want</td></tr>
Hope that's clear enough.

Good luck with your learning of HTML
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Old 07-03-2005, 08:04 AM
Experienced Talker

Posts: 32
Trades: 0
ahh ok im trying those...okay i have this

Code:
<table border="1px" bordercolor="#3366CC" cellspacing="0" cellpadding="0" height="30%" width="20%">
<tr>
<td>
<table>
<tr><td align="center">Members Login:</td></tr>
<td><form>
<tr><td>User Name:</td><td><input type="text" name="user"></td></tr>
<tr><td>Password:</td><td><input type="password" name="password"></td></tr>
<tr><td colspan=2 align=center><input type="submit" value="Submit"></td></tr>
</form>
</table>
</td>
How do i try and center the "Members Longin" i've tried to center it with all the table rows and data's with no luck im sure im doing somthing wrong.

Thanks for you help guys
zerox3k is offline
Reply With Quote
View Public Profile
 
Old 07-03-2005, 09:26 AM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
You'd almost got it right, all you did was forget that the <td> you have the Members Login inside needs to spread across two columns:

Code:
<table border="1" bordercolor="#3366CC" cellspacing="0" cellpadding="0" height="30%" width="20%">
<tr>
<td align=center>
<table>
<tr><td align="center" colspan=2>Members Login:</td></tr>
<td><form>
<tr><td>User Name:</td><td><input type="text" name="user"></td></tr>
<tr><td>Password:</td><td><input type="password" name="password"></td></tr>
<tr><td colspan=2 align=center><input type="submit" value="Submit"></td></tr>
</form>
</table>
</td>
I've also center aligned the form inside the outer table for neatness.

Hope it works for you now.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Old 07-03-2005, 12:24 PM
Experienced Talker

Posts: 32
Trades: 0
Great thank you mate worked a treat

Hey one thing i cant figure out is how to add another box (table) at the side of another.

example is i have that log in box (table) at the top left of my page if i create another table it goes under it on the next line (<tr>) how do i make it so that its next to the log in box on the right side of it :s

Thanks again for your help m8
zerox3k is offline
Reply With Quote
View Public Profile
 
Old 07-03-2005, 02:46 PM
The_Anomaly's Avatar
Extreme Talker

Posts: 216
Location: Boston, Ma
Trades: 0
I think you have to make a new table. i'm pretty sure there's another way to do it but i always just end up doing that.
The_Anomaly is offline
Reply With Quote
View Public Profile
 
Old 07-03-2005, 04:33 PM
onlyplace4's Avatar
Extreme Talker

Posts: 159
Location: Skegness, Lincolnshire, England
Trades: 0
You need to nest the tables ... hope the following is clear:

Code:
<table><tr valign="top">
<td><table>... this would be the login table ...</table></td>
<td><table>... this is a table next to it ...</table></td>
</tr></table>
As long as the seperate tables are contained within their own <td></td> tags within a single <tr></tr> the tables will end up next to each other. Remember the valign="top" to ensure that the tops of the respective tables line up.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
onlyplace4 is offline
Reply With Quote
View Public Profile Visit onlyplace4's homepage!
 
Reply     « Reply to alignment help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27278 seconds with 12 queries