This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Submit Buttons

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody:
How can i make all the submit buttons in my my form of same size ?
Thank you
Siva
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Submit buttons will be the size of the text with some padding and it is the browser that makes those specs, so it is differnt on IE and Netscape and different again on PC and Mac. For example, with Netscape you can set the font and size, bold, etc... for a button, but it won't work in IE.
The way around this is to create an image that looks like a submit button, and either use javascript to make the form submit or use type="image" src="../submit.gif" width="75" height="50" to use as your submit button.
But basically, you can't control it amongst all browsers and OS unless you use images.
One other thing you can try is to pad the smaller buttons with spaces, so if you have two buttons, one that says "Submit" and the other that says "Clear the form" you can pad the submit button so it is " Submit ", but getting that to be the exact size on both browsers is near impossible all the time. Images work better.
Bill
 
Siva Jagadeesan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Bill:
Thank you
I will try using the image
Anyway do u have any omage let me know
Siva

Originally posted by bill bozeman:
Submit buttons will be the size of the text with some padding and it is the browser that makes those specs, so it is differnt on IE and Netscape and different again on PC and Mac. For example, with Netscape you can set the font and size, bold, etc... for a button, but it won't work in IE.
The way around this is to create an image that looks like a submit button, and either use javascript to make the form submit or use type="image" src="../submit.gif" width="75" height="50" to use as your submit button.
But basically, you can't control it amongst all browsers and OS unless you use images.
One other thing you can try is to pad the smaller buttons with spaces, so if you have two buttons, one that says "Submit" and the other that says "Clear the form" you can pad the submit button so it is " Submit ", but getting that to be the exact size on both browsers is near impossible all the time. Images work better.
Bill


 
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!