Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Closed Points: 75 Time: 11:02 - Mar 12, 2007  

mary2

Can I change the size of text within HTML buttons without using CSS?

For some crazy business requirement I need to make the text size within a button smaller without using CSS, is this possible?

Categories

Answer Discussion
Tutorials

 

rcastagna

Date:: Mar 16, 2007

Time:: 16:12

john...yep, that is a crazy business requirement...almost as crazy as the requirement I was given to change the text on the buttons in a javascript alert or confirm box.

The short answer to both requirements is: you can't.

As you pointed out, you can change the font size of standard HTML buttons (and asp:button controls) by using CSS, but if you do that, you're going to lose the "XP" look of the buttons (for those using XP) and they will revert to their plain vanilla HTML button appearance.

I would also think that there could be a problem with changing the text size, especially if you use a fixed point size, if you're in an environment that requires "accessibility" for people with various physical challenges (sheesh, how politically correct).

Not knowing where you are, but in the US, people have started to sue because a web site they've gone to was not accessible or accommodating to their particular physical challenge. Unless you keep the text to a measurement that can scale - such as "em" height, you may have people complain.

I hope this helps,
Ric

mary2

Date:: Mar 17, 2007

Time:: 16:36

Thanks RC

Question Answered

This question has been closed, and points have been rewarded to the following experts:


rcastagna: 75

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es