954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

A CSS Question - Stoping Fonts from Becoming Giants!

Hmm... Please excuse my technical knowledge [ Which you will see from my question :evil: ] .

My question is that I created a table on the bottom of my page my page. What I want to do is that I want the font size absolutely fixed... i.e. if someone chooses View > Text Size > Largest ... then the font size must remain the same as I defined [ Verdana , and 10pt ] rather than getting larger than this.

BTW I used CSS Class something like this

.navhead { font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}

I would appreciate any help in this matter.

pulse
Posting Whiz in Training
227 posts since Aug 2004
Reputation Points: 11
Solved Threads: 0
 

Have you tried .navhead { font-size: 10pt; } ?

cscgal
The Queen of DaniWeb
Administrator
19,436 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

Uhmm... No Luck.

Here's the exact code that I am using -

CSS - .premium-partners { font-size: 10pt ; font: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;}


HTML -

Our
Premium Partners |



Am I missing something ?

pulse
Posting Whiz in Training
227 posts since Aug 2004
Reputation Points: 11
Solved Threads: 0
 

Well, first of all get rid of your tags :)

cscgal
The Queen of DaniWeb
Administrator
19,436 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

Gee... Thanks! That worked. You are very helpful , Dani ;)

pulse
Posting Whiz in Training
227 posts since Aug 2004
Reputation Points: 11
Solved Threads: 0
 

you should also use px rather than pt for screen font sizes, as pt is for print media.

DaveSW
Master Poster
769 posts since Jul 2004
Reputation Points: 54
Solved Threads: 20
 

Keep in mind that pt and px are not directly equivalent - i.e. 8 pt is not the same as 8 px. So don't go and change it and then thing it's wrong because the font changed size.

cscgal
The Queen of DaniWeb
Administrator
19,436 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You