Changing button width 
Author Message
 Changing button width

I have a button on a intranet page that has a set width:
<Input type="button" Value="" name=notes style="Width=125">
I have a VBScirpt that changes the Value, but I also want to change the
width to one of two values, based on the value.
I tried Form1.Notes.Style="Width=50"
but i get "Object does not support this method"
Any Ideas on how to do this?

Jeff

--
Posted via CNET Help.com
http://www.*-*-*.com/



Mon, 30 Dec 2002 03:00:00 GMT  
 Changing button width

Examples:

Form1.Notes.Style.Width = "50"
Form1.Notes.Style.fontFamily = "Tahoma"

--
Dominic



Mon, 30 Dec 2002 03:00:00 GMT  
 Changing button width
  Form1.Notes.Style.width="50px"

You should always specify a unit with a length. IE assumes pixels if there is
no unit, but other browsers (Opera, NS6) won't. Also, you should use ":" not
"=" in your styles.

  style="width:125px"

=-=-=
Steve
-=-=-


Quote:
> I have a button on a intranet page that has a set width:
> <Input type="button" Value="" name=notes style="Width=125">
> I have a VBScirpt that changes the Value, but I also want to change the
> width to one of two values, based on the value.
> I tried Form1.Notes.Style="Width=50"
> but i get "Object does not support this method"
> Any Ideas on how to do this?

> Jeff

> --
> Posted via CNET Help.com
> http://www.help.com/



Mon, 30 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. changing command button width to fit caption

2. Disable button and change button value at radio

3. HTML button? Change size of button

4. Controlling width of the Button control

5. toolbar with different width buttons

6. Coolbar button width

7. Width of buttons in toolbar

8. Toolbar -> width/color of the buttons

9. Button Width on Toolbar Control

10. width of a toolbar dropdown-button

11. Toolbar buttons with different widths

12. Toolbar Button Widths

 

 
Powered by phpBB® Forum Software