473,387 Members | 1,545 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,387 software developers and data experts.

Font size for <button> in IE

Dear All,

I am trying to influence the font size for a <button> element using
CSS, but failing for IE. Works ok in FF. IE seems to ignore all
attempts; for example with this:

div.whatever button {
width: 8em;
font-size: something;
}

the width varies as I adjust "something", so the rule is being applied
to the element, but the actual character size doesn't change. Googling
reveals one bug report but even there they are able to have some
influence, while I change nothing:

http://www.quirksmode.org/bugreports...font_size.html

I wonder if there is some UI preference for "don't let page change
button font"?

Any thoughts anyone?

--Phil.

Jul 21 '05 #1
3 9579
On Thu, 17 Feb 2005 08:20:28 -0800, phil_gg04 wrote:
Dear All,

I am trying to influence the font size for a <button> element using CSS,
but failing for IE. Works ok in FF. IE seems to ignore all attempts; for
example with this:


Do yourself a favor - avoid using the <button> tag until IE adopts the W3C
recommended behavior. As is, you won't be able to detect _which_ button
was clicked.

La'ie Techie

Jul 21 '05 #2
> > I am trying to influence the font size for a <button> element using
CSS,
but failing for IE.
avoid using the <button> tag until IE adopts the W3C
recommended behavior. As is, you won't be able to detect _which_

button was clicked.


Fortunately I have only one button per form. I'm using a <button>
rather than <input type="submit"> so that I can have have both text and
a graphic in it; similar appearance to the browser's own "Back",
"Reload", "Print" etc. buttons would be nice.

But my font-size problem happens also with <input type="submit">.
Nothing I do changes the size of the text! Perhaps it is actually for
ALL form elements. Can someone tell me if this ought to work?

--Phil.

Jul 21 '05 #3
ph*******@treefic.com wrote:

I am trying to influence the font size for a <button> element using
CSS, but failing for IE. Works ok in FF. IE seems to ignore all
attempts; for example with this:

div.whatever button {
width: 8em;
font-size: something;
}

div.whatever input {
font-size:90%; font-family: sans-serif;
width: 8em;
}
Works for me.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #4

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

Similar topics

1
by: RSB | last post by:
Hi Every one, Having tuff time to make this work .. i want to have a button and on my form say Delete button. So once i click on it i want to confirm "Are you sure?" on the Client Side and if...
6
by: Fred Phase | last post by:
The following button definition works fine in Mozilla where the value "in" is assigned to "awol_status". In Internet Explorer 6.0.2800.1106 on Win 2K the value "switch status" is assigned to...
15
by: Mattia | last post by:
Hi! I have a <form> that can be submitted thruogh three buttons and I need to tell witch one was pressed when the form was submitted. I now do it with 3 <input type="submit" name="..."...
2
by: not 2 swift | last post by:
I thought I would update an old page on which I had used a <INPUT TYPE=image ...> with a <BUTTON><IMG SRC=...></BUTTON> The problem is that <BUTTON> always provides a shadow/emboss effect. Can...
3
by: Lāʻie Techie | last post by:
I'm having two troubles with the <button> tag in Internet Explorer on Windows (I don't have access to a Mac to test it). It works as expected in Mozilla both on Windows and Linux. Here is the...
2
by: Christopher Benson-Manica | last post by:
According to http://www.w3schools.com/tags/tag_button.asp, the type attribute of the <button> tag is optional. Is the UA at liberty to choose any type it wishes if the attribute is omitted? Does...
4
by: z. f. | last post by:
Hi, I'm having an aspx page with a server form. i have a grid with a delete button and below the grid, another area with inputs for inserting new values and an "add" button for submiting the...
1
by: CharlesA | last post by:
Hi folks, first off, I'm using Framwork 1.1 with ASP.net and C# I'm trying to do something quite basic and can't figure out why it won't behave without going into massive details I want a...
4
by: Poornima N | last post by:
my question is can we apply the CSS to upload button like BROWSE ? if so hw can we apply?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.