Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: [html_code_clinic]Re: button


Message #1 by "Danger Stevens" <manofgod@u...> on Wed, 08 Aug 2001 13:40:49 -0800
I too have spent countless hours trying to come up with a solution to this
very problem. In my opinion you have two choices to fix it. 1) make the
buttons images. 2)use flash. In both of these the height and width will not
change regardless of the browser your clients are using. 

-----Original Message-----
From: Christy Curtis [mailto:ChristyC@i...]
Sent: Wednesday, August 08, 2001 6:01 PM
To: HTML Code Clinic
Subject: [html_code_clinic] RE: [html_code_clinic]Re: button


thanks... I am currently using the spaces, but a request was made to
delete them and find an alternative solution...there is suppose to be a
way to do it in dhtml...but I have yet to find it


-----Original Message-----
From: Danger Stevens [mailto:manofgod@u...]
Sent: Wednesday, August 08, 2001 5:41 PM
To: HTML Code Clinic
Subject: [html_code_clinic] [html_code_clinic]Re: button


>Is there a way to fix the width of a control button?
>I have three buttons that need to be the same width,
>but the values are different.

Honestly, this can't be done.  Netscape, Opera, and IE all display 
buttons differently and vary the sizes based on the values.  One option 
you have to approximate it is to set the font of the button (using style

sheets) to a fixed-width font, then use spaces as characters to fill up 
the values of the shorter buttons.  With a little testing you might be 
able to get them right on.
- Danger



  Return to Index