473,399 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

relative sizing of button text

Hello all, I'm trying to get the text (and the button) to resize when a user
selects a new font size in the "View...Text Size...[5 choices]" menu in
MSIE. I have a style sheet specifying:

button.blue {
background-color: #4682b4;
font: 20px;
}

and a form element:

<input type="button" class="blue" value="submit">

When rendered, the button looks fine at 'medium' font setting but it doesn't
change when the MSIE font menu described above is used. The static test on
the page changes but not the button. I've tried all the font settings I can
find in the style but nothing works. Is there a way to make a button and
it's text change in accordance with the MSIE5.5+ (and necessarily
Netscape6+) font menu settings? Yes, the reply email works but I will be
checking back here too. Thanks a bunch in advance.

Secret Asian Man

Jul 20 '05 #1
2 4699
a_nonymous8 wrote:
Hello all, I'm trying to get the text (and the button) to resize when
a user selects a new font size in the "View...Text Size...[5
choices]" menu in MSIE. I have a style sheet specifying:

button.blue {
background-color: #4682b4;
font: 20px;
}

and a form element:

<input type="button" class="blue" value="submit">

When rendered, the button looks fine at 'medium' font setting but it
doesn't change when the MSIE font menu described above is used.


button.blue {background-color:#4682b4; font:2em;}
--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #2
a_nonymous8 pounced upon this pigeonhole and pronounced:
Hello all, I'm trying to get the text (and the button) to resize when a user
selects a new font size in the "View...Text Size...[5 choices]" menu in
MSIE. I have a style sheet specifying:

button.blue {
background-color: #4682b4;
font: 20px;
}

and a form element:

<input type="button" class="blue" value="submit">

When rendered, the button looks fine at 'medium' font setting but it doesn't
change when the MSIE font menu described above is used. The static test on
the page changes but not the button. I've tried all the font settings I can
find in the style but nothing works. Is there a way to make a button and
it's text change in accordance with the MSIE5.5+ (and necessarily
Netscape6+) font menu settings? Yes, the reply email works but I will be
checking back here too. Thanks a bunch in advance.


button.blue {
background-color: #4682b4;
font-size: 100%;
}

Use a percentage instead of pixels. IE is broken and will not allow the
visitor to resize anything you set in pixels.

(You should set a foreground color as well.)

--
-bts
-This space intentionally left blank.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ken Kast | last post by:
Here's my situation. I have a statically positioned table that has an image in a cell. I also have some layers, defined by absolute-positioned DIVs for some animation. Everything works until I...
2
by: bugbear | last post by:
Is there a current "best practice" for text sizing? My goal is a have a web page (web application actually) which looks the same (more or less) on Mac IE5, PC IE6, Mozilla, Konqueror and Safari....
2
by: Sam Goffin | last post by:
Hi how can I resize my form borders in .NET (either VB or C#)? In one of my programs I want to extend the usual form size at one end (when the user clicks the "Details..." button), so I need...
1
by: josquin | last post by:
Hello, I am creating a page that features a large table with relative sizes, where the images therein are also relative in size, as in the following: <table width="100%" border="0"...
2
by: robbiehenry | last post by:
I built my company's website and the content portion of the site uses text with styles with relative values and the navigational part of the site uses text with styles with absolute values. The...
0
by: PJ6 | last post by:
I source an ascx page in an IFrame. The IFrame gets resized by its containing table (width + height 100%). The contained page, though, does not seem to have its contents recognize its own size. Is...
9
by: Max | last post by:
Hello, Using VB.NET, I can activate an application by entering: AppActivate(intProcessID), where intProcessID is the process ID of a running application. Is it possible to set the size and...
5
by: lamxing | last post by:
Hi, I've come across a strange problem with the WinForm's sizing. I've designed a WinForm and it runs fine on my computer and some other PCs. But when I was trying to run the app under some PCs...
1
by: chewinggumking | last post by:
I need help with this problem I'm facing when I use Tkinter to make a GUI. The app window is the correct sige h = 200, w = 400 if I don't add a button to the script. The weird thing is, the minute...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.