By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

relative sizing of button text

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.