Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-28-2012, 06:12 AM   PM User | #1
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
CSS font works in Chrome, not in Firefox/Opera

Hi. This site has CSS:

Code:
.main-navigation li {
	font-family: 'MyriadPro-BoldCond', Arial;
	font-size: 12px;
	font-size: 0.857142857rem;
}
It displays as intended in Chrome, but the Myriad Pro Bold Condensed font does not display in Firefox or Opera.

Can you see why?
SRD75 is offline   Reply With Quote
Old 10-28-2012, 07:53 PM   PM User | #2
gingerbread
New Coder

 
Join Date: Jan 2012
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
gingerbread is an unknown quantity at this point
I'm using Chrome and I'm getting what looks like Arial (I checked your font here http://fontzone.net/font-details/MyriadPro-BoldCond/)

Have you tried embedding the font using @font-face rule?
gingerbread is offline   Reply With Quote
Old 10-31-2012, 12:40 PM   PM User | #3
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
I've tried that, following instructions here, but this has broken the page layout in Firefox and IE8.

Chrome and Opera are not broken, but they don't display the font I have uploaded.
SRD75 is offline   Reply With Quote
Old 11-07-2012, 01:22 PM   PM User | #4
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
Nothing stand out, gingerbread?
SRD75 is offline   Reply With Quote
Old 11-07-2012, 02:06 PM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,697
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Just for the records: Myriad (Pro) is a licensed font and not allowed to be embedded with CSS in such a way that the source files can be downloaded (and they can if you upload them to the server and reference them in the stylesheet).

Now, as to the differences: I don’t know if and how this still applies but I remember Webkit browsers using PostScript font names while others use the normal names. Also http://rachaelmoore.name/posts/desig...-family-stack/ might be an interesting read.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 11-11-2012, 01:43 AM   PM User | #6
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
Thanks for the heads up RE: licensing. I will discuss that with the client.

I ended up using this generator. The broken page layout in IE & Firefox has been resolved.

However, Firefox, IE & Opera still do not display the font in the main navigation properly.
SRD75 is offline   Reply With Quote
Old 11-17-2012, 03:00 AM   PM User | #7
SRD75
Regular Coder

 
Join Date: Sep 2011
Posts: 148
Thanks: 28
Thanked 1 Time in 1 Post
SRD75 is an unknown quantity at this point
The filenames on the server had capital letters, while the CSS reference to the files did not contain capital letters. /wince
SRD75 is offline   Reply With Quote
Reply

Bookmarks

Tags
chrome, css, firefox, font, opera

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 02:22 AM.


Advertisement
Log in to turn off these ads.