Wikiposts
Search
Computer/Internet Issues & Troubleshooting Anyone with questions about the terribly complex world of computers or the internet should try here. NOT FOR REPORTING ISSUES WITH PPRuNe FORUMS! Please use the subforum "PPRuNe Problems or Queries."

HTML--buttons in a row?

Thread Tools
 
Search this Thread
 
Old 4th Oct 2005, 11:04
  #1 (permalink)  
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.
cool blue is offline  
Old 4th Oct 2005, 11:20
  #2 (permalink)  
 
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
Stoney X is offline  
Old 4th Oct 2005, 14:07
  #3 (permalink)  
Thread Starter
 
Join Date: Jul 2001
Location: uk
Posts: 52
Likes: 0
Received 0 Likes on 0 Posts
Hi Stoney X,

You hit the button!

Cheers!

CB.
cool blue is offline  
Old 4th Oct 2005, 19:27
  #4 (permalink)  
 
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
SoftTop is offline  

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



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.