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

format size of submit button 1

Status
Not open for further replies.

ksbigfoot

Programmer
Apr 15, 2002
856
CA
I have 2 lines of submit buttons (12 in all). I want to add in one more button, but I don't have the space and if I do add in one more button, it will add a 3rd line.

I noticed there is quite a bit of space beside the wording of the buttons, is there a way to get the spaces out and make the buttons not as wide?

Thanks
 
yes, you can probably use margin or padding settings. however, did you ever think of what it may look like if a user has his text size set to large in the browser?

i don't suggest trying to limit things to certain number of lines this way - it's not very user friendly.



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Howdy Jeff & cLFlaVa,

I was looking at but I seen the buttons are just as wide. I don't know how to change the width of a button in CSS, I will search on how to do this.

I have been looking around this forum and I wonder if this would work?
I will use an image instead of a submit button. When the image is clicked it will pass in a value into a Javascript function. The Javascript function will populate a hidden field called Submit with the value passed into the function.
Then the Javascript function will submit the form.
This way, the page that is called looks at the Submit button and sees the value.
Do you think this will work in all browsers?
Thanks
 
Howdy Jeff,

Star to you.
I found this: style="width: 120px;"
If works on setting the width of my submit buttons.
Thanks again
ksbigfoot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top