Windows Vista Forums
Vista Forums Home Join Vista Forums Donate 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 Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Microsoft Technical Newsgroups > VB Script

Change width on INPUT TYPE="Button"

Reply
 
LinkBack Thread Tools Display Modes
Old 10-06-2008   #1 (permalink)
Len
Guest


 
 

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
Guest


 
 

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
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Offline Files "Change Limits" button not working Eriq Vista networking & sharing 6 11-18-2008 08:44 AM
How do I change the type of "Value" in PSNoteProperty AgentM PowerShell 4 08-01-2008 01:12 PM
Offline Files "Change Limits" button not working. Cannot change Offline Files Settings Eriq Vista General 0 01-06-2008 08:53 PM
3xQ - "New Folder" button?, "- Shortcut" suffix, Preview bug? Julian Vista file management 7 06-26-2007 07:32 AM
Change a filetype's "edit with" independent of "open with"? frankspace Vista file management 0 06-27-2006 01:46 PM


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 47 48 49 50 51 52 53