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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

buttons

Status
Not open for further replies.

FranckM

Programmer
May 8, 2002
76
CA
Instead of having links in my site, I want to make them buttons. I create a form for each ling with the action as the url of the link. The button works..but's huge...is there a way to make the button stay the size of a normal button and not a huge one.

Thanks for readinf and replying!
 
For IE you can set the width in the style (I don't know NN6). For NN4+ (I don't know NN6) you have to set the width-attribute of the input element.

<input width=&quot;150&quot; height=&quot;40&quot; type=&quot;button&quot; style=&quot;width:150px; height:40px;&quot; name=&quot;btnButton&quot; value=&quot;Button&quot;>

Of you have several buttons you better can make a style or stylesheet:

<style>
.buttonstyle1
{
width:150px;
}
</style>

<Input type=&quot;button&quot; class=&quot;buttonstyle1&quot; name=&quot;btnButton&quot; value=&quot;Button&quot;>

Here are some other styles that works for IE + NN:

<INPUT TYPE=&quot;submit&quot; width=&quot;200&quot; height=&quot;40&quot; style=&quot;font-size:70%; font-style:italic; text-decoration: underline; Font-Family: times new roman; width:200px; height:40px;&quot; name=&quot;buttonIENN2&quot; value=&quot;buttonvalue IE + NN nr.2&quot;><br>

(you can also add some other styles. Some of them works in NN4.7 and some don't, just try it.)


Hope this helps,
Erik <!-- My sport: Boomerang throwing !!
This year I will participate at the World Championships in Germany. (!! Many Happy Returns !! -->
 
Thanks for the help, though now I have an other problem, the value's variable I get from the database dosen't appear on the button. I'll tackle it some more and see what happends. If I put a hardcoded value in value, it does show...odd...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top