HTML--buttons in a row?
Thread Starter
Join Date: Jul 2001
Location: uk
Posts: 52
Likes: 0
Received 0 Likes
on
0 Posts
HTML--buttons in a row?
Hi,
I'm building my first website, but have run into a problem with the buttons for my menu.
Initially, I used the BUTTON command [< button type = " " >< / button >], but then discovered that A HREF [< a href =" ">< / a>] relates to text and didn't work (I tried all combinations I could think might apply--but nada).
Then discovered the FORM command [< FORM METHOD = "LINK" ACTION = "index.html" > <INPUT TYPE="submit" VALUE=">>ENTER<<">], which worked when in a (naff looking) column, but I want the buttons to be in a row. So I deleted the < / FORM> after each and voila, I had the
row, but alas, now they no longer work .
Does anyone know how I can make them work AND keep them in a row?
Cheers,
CB.
I'm building my first website, but have run into a problem with the buttons for my menu.
Initially, I used the BUTTON command [< button type = " " >< / button >], but then discovered that A HREF [< a href =" ">< / a>] relates to text and didn't work (I tried all combinations I could think might apply--but nada).
Then discovered the FORM command [< FORM METHOD = "LINK" ACTION = "index.html" > <INPUT TYPE="submit" VALUE=">>ENTER<<">], which worked when in a (naff looking) column, but I want the buttons to be in a row. So I deleted the < / FORM> after each and voila, I had the
row, but alas, now they no longer work .
Does anyone know how I can make them work AND keep them in a row?
Cheers,
CB.
Join Date: Mar 2004
Location: Bournemouth, UK
Age: 53
Posts: 133
Likes: 0
Received 0 Likes
on
0 Posts
I'm sure there's easier ways but ....
<html>
<body>
<table>
<tr>
<td>
<form action='form1'>
<input type='submit' value='form1'/>
</form>
</td>
<td>
<form action='form2'>
<input type='submit' value='form2'/>
</form>
</td>
</tr>
</table>
</body>
</html>
Basically you are placing the <form>'s within cells of a table so the natural tendency of the </form> tag to newline is confined to the cell.
Regards
Stoney
<html>
<body>
<table>
<tr>
<td>
<form action='form1'>
<input type='submit' value='form1'/>
</form>
</td>
<td>
<form action='form2'>
<input type='submit' value='form2'/>
</form>
</td>
</tr>
</table>
</body>
</html>
Basically you are placing the <form>'s within cells of a table so the natural tendency of the </form> tag to newline is confined to the cell.
Regards
Stoney
Join Date: Apr 2004
Location: North of Watford
Posts: 196
Likes: 0
Received 0 Likes
on
0 Posts
One of my lads has just pointed me at a site that does javascript freebies (he reckons that they're much better than HTML) and he then located a pile of "button" scripts that you can simply cut and paste.
Try http://javascript.internet.com
Alternatively, google for "javascript"
ST
Try http://javascript.internet.com
Alternatively, google for "javascript"
ST