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!

Can't you force the width and heigh

Status
Not open for further replies.

Targol

Technical User
Sep 13, 2002
908
FR
Can't you force the width and height values of your submit and reset button by applying a css class like this one :
Code:
.button {
  font-family: Verdana;
  font-size: 8pt;
  background: #333;
  color: #F90;
  border-style: solid;
  border-color: #F5F5F5;
  border-width: 1px;
  margin-left: 1px;
  margin-right: 1px;
  margin-top: 1px;
  margin-bottom: 1px;
  padding-left: 1px;
  padding-right: 1px;
  padding-top: -1px;
  padding-bottom: 1px;
  height : 40px;
  width  : 100 px;
}
Water is not bad as soon as it stays out human body ;-)
 
Hi Targol,
Yes you can and the code you provided does it. what browser and version are you trying to apply it too.
IE 5.5 has it the way the code specifies it. A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
are you trying to do this globaly in the page or are you calling the style with the class="" etc. you can't do it globaly and I think that may be what you are trying. you have to set the class in the tag like
<input type=&quot;submit&quot; value=&quot;test&quot; class=&quot;button&quot;> A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
That will specify the mimimun width of the button. If the text is takes up more than 100px it will strech unless you add:

overflow:hidden;


Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top