Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Change width on INPUT TYPE="Button"

Reply
 
Old 10-06-2008   #1 (permalink)
Len


 
 

Change width on INPUT TYPE="Button"

I have some buttons that are very wide. I have been looking for weeks trying
to see if I can narrow them.

Below is the script line I would like to change.

<Input Type="Button" Value="Look Up Conference / District / Section! It will
be used for the states where all subjects test in the same district and/or
conference as Non-Core Subjects." Width="77" Name="PY" OnClick="ACQYK()">

I have tried many different solutions, none of which have worked.

Does anyone know what I am doing wrong or how to do it?

Thanks in Advance

Len



My System SpecsSystem Spec
Old 10-06-2008   #2 (permalink)
mayayana


 
 

Re: Change width on INPUT TYPE="Button"

I think the real problem is with your button caption.
It should just say something like "Look Up". If it needs
an explanation you can put that under the button.
You can also use the TITLE attribute to produce a
tooltip on hover.

If you still need to adjust the button you can use
CSS, which provides far greater control than just plain
HTML. With CSS you can control the font, background
color, text color, button border, etc. You can also
control the width. Try the example below. (I set width
at 200 px but it's still too small for all of the caption to
show. If you're going to use a specific width to cram your
text in then you should specify exact font-family and
font-size so that the button works for all of your viewers.)

<HTML>
<HEAD>
<TITLE></TITLE>
<STYLE>
#But1 {width: 200px;}
</STYLE>

</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<Input Type="Button" ID="But1" Value="Look Up Conference / District /
Section! It will
be used for the states where all subjects test in the same district and/or
conference as Non-Core Subjects." Width="77" Name="PY" OnClick="ACQYK()">
</BODY></HTML>
Quote:

> I have some buttons that are very wide. I have been looking for weeks
trying
Quote:

> to see if I can narrow them.
>
> Below is the script line I would like to change.
>
> <Input Type="Button" Value="Look Up Conference / District / Section! It
will
Quote:

> be used for the states where all subjects test in the same district and/or
> conference as Non-Core Subjects." Width="77" Name="PY" OnClick="ACQYK()">
>
> I have tried many different solutions, none of which have worked.
>
> Does anyone know what I am doing wrong or how to do it?
>
> Thanks in Advance
>
> Len
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
error code 39 on all device type: "Modems" & "Ports (COM & LPT)" Vista hardware & devices
Offline Files "Change Limits" button not working Vista networking & sharing
How do I change the type of "Value" in PSNoteProperty PowerShell
Offline Files "Change Limits" button not working. Cannot change Offline Files Settings Vista General
3xQ - "New Folder" button?, "- Shortcut" suffix, Preview bug? Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46