473,396 Members | 1,786 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,396 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 9580
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: 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
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?
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
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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 projectplanning, coding, testing,...

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.