WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum > Accessibility and Usability Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Accessibility and Usability Forum Discuss topics related to website accessibility and usability. Subjects include; testing techniques, tutorials, guidelines and legal issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2005, 05:28 AM
jdyndale jdyndale is offline
WebProWorld Member
 

Join Date: Jul 2003
Location: Oslo, Norway
Posts: 47
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

Webdesign | Web Design
Reply With Quote
  #2 (permalink)  
Old 12-31-2005, 05:44 AM
jdyndale jdyndale is offline
WebProWorld Member
 

Join Date: Jul 2003
Location: Oslo, Norway
Posts: 47
jdyndale RepRank 0
Default

Never mind... Just found out that using ex instead of px for font sizes solved it. Duh! :)
__________________
Regards,
Joachim Dyndale

Webdesign | Web Design
Reply With Quote
  #3 (permalink)  
Old 12-31-2005, 10:47 AM
Webnauts's Avatar
Webnauts Webnauts is online now
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Worldwide
Posts: 6,457
Webnauts RepRank 3Webnauts RepRank 3
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
Reply With Quote
  #4 (permalink)  
Old 01-01-2006, 05:02 AM
jdyndale jdyndale is offline
WebProWorld Member
 

Join Date: Jul 2003
Location: Oslo, Norway
Posts: 47
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

Webdesign | Web Design
Reply With Quote
  #5 (permalink)  
Old 01-19-2006, 03:32 PM
jp06 jp06 is offline
WebProWorld New Member
 

Join Date: Jan 2006
Location: Rhode Island
Posts: 7
jp06 RepRank 0
Default

what's an ex?
__________________
customized ecommerce system
Reply With Quote
  #6 (permalink)  
Old 01-20-2006, 05:39 AM
le_gber le_gber is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Bedfordshire, UK
Posts: 340
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
Tags: font, problem, sizes



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

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



Search Engine Friendly URLs by vBSEO 3.0.0