iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Accessibility and Usability Forum Discuss topics related to website accessibility and usability. Subjects include; testing techniques, tutorials, guidelines and legal issues.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2005, 06:28 AM
WebProWorld Member
 
Join Date: Jul 2003
Location: Oslo, Norway
Posts: 40
jdyndale RepRank 0
Default problem with font and font sizes...

Hi,

I made a web site for some friends, and we wanted to use a font called Vixar. So I used Vixar as the main font, and courier new as the first generic alternative. However, Vixar has smaller character sizes than courier by default, so to get a readable font size I had to use a size of 20px - which of course looks bad when viewed in Firefox or Opera, as they don't support the @font-family CSS rule which loads an Open Type version of Vixar.

So, my question is this: Is it possible to, via CSS, apply one font/font-size to some text if the font is supported and another font/font-size to the same text if it is not?

Thanks...
__________________
Regards,
Joachim Dyndale
Reply With Quote
  #2 (permalink)  
Old 12-31-2005, 06:44 AM
WebProWorld Member
 
Join Date: Jul 2003
Location: Oslo, Norway
Posts: 40
jdyndale RepRank 0
Default

Never mind... Just found out that using ex instead of px for font sizes solved it. Duh! :)
__________________
Regards,
Joachim Dyndale
Reply With Quote
  #3 (permalink)  
Old 12-31-2005, 11:47 AM
Webnauts's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Aug 2003
Location: Worldwide
Posts: 8,167
Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9Webnauts RepRank 9
Default

Quote:
Originally Posted by jdyndale
Never mind... Just found out that using ex instead of px for font sizes solved it. Duh! :)
I am convinced that using ex is not* the best solution.
You better use em, or even better %.

And by the way, I wish a very happy and successful New Year.

---
* correction
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood
SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO
Reply With Quote
  #4 (permalink)  
Old 01-01-2006, 06:02 AM
WebProWorld Member
 
Join Date: Jul 2003
Location: Oslo, Norway
Posts: 40
jdyndale RepRank 0
Default

Actually, IE, Firefox and Opera display the text in different sizes when using a relative size unit and the design on the site in question it's impossible to get a size that cosistantly looks good across browsers.

Too bad Firefox and Opera don't support the @font-family CSS rule. It's a VERY useful rule....
__________________
Regards,
Joachim Dyndale
Reply With Quote
  #5 (permalink)  
Old 01-19-2006, 04:32 PM
WebProWorld New Member
 
Join Date: Jan 2006
Location: Rhode Island
Posts: 7
jp06 RepRank 0
Default

what's an ex?
Reply With Quote
  #6 (permalink)  
Old 01-20-2006, 06:39 AM
WebProWorld Member
 
Join Date: Aug 2003
Location: Bedfordshire, UK
Posts: 97
le_gber RepRank 0
Default

there you go jp06:
http://www.htmlhelp.com/reference/cs...font-size.html
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum > Accessibility and Usability Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:35 PM.



Search Engine Optimization by vBSEO 3.3.0