PDA

View Full Version : HTML--buttons in a row?


cool blue
4th Oct 2005, 11:04
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.

Stoney X
4th Oct 2005, 11:20
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

cool blue
4th Oct 2005, 14:07
Hi Stoney X,

You hit the button!:O

Cheers!

CB.

SoftTop
4th Oct 2005, 19:27
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"

:ok:

ST