Jump to content

Font Unit em and safari compatibility

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Font Unit em and safari compatibility Rate Topic: -----

#1 User is offline   sam 

  • W.R. Corporal
  • Group: Members
  • Posts: 117
  • Joined: 07-February 07
  • Gender:Male

Posted 05 March 2007 - 03:00 PM

Hey Everybody. I have some questions about font unit. I use em for font and other measurements as much as I can so that things scale up well when font size is increased. But I was looking at some screen shots from browser cam and found that things looked great till I got to safari. The line-space and font size was a mess. Is there a compatibility problem with em and safari ? I couldn't find any such info on the web so I thought I will ask here. If not is there some inheritance problem with safari ? because all browsers including the dreaded IE6 rendered it just fine. Any feedback will be greatly appreciated. Thanks.
0

#2 User is offline   TJSingleton 

  • Allegedly Legendary
  • Group: Members
  • Posts: 517
  • Joined: 31-July 06
  • Location:Winder, GA

Posted 05 March 2007 - 03:03 PM

For pixel perfect cross browser font rendering check out: http://developer.yahoo.com/yui/fonts/

This post has been edited by TJSingleton: 05 March 2007 - 03:04 PM

0

#3 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 05 March 2007 - 05:09 PM

To answer your question about Safari, and compatibility... Safari is just about the best browser made when it comes to supporting advanced code (yes, better than Firefox), so it certainly isn't a safari compatibility issue.

What you're likely seeing is simply the inherent differences in the operating systems. There is different default kerning, line-height, font rendering, etc. between OS X and Winders, and Linux for that matter.
0

#4 User is offline   sam 

  • W.R. Corporal
  • Group: Members
  • Posts: 117
  • Joined: 07-February 07
  • Gender:Male

Posted 05 March 2007 - 05:17 PM

Apart from the font reset TJ has mentioned do you have any other tricks to sort this out ? I did go through your css foundation file. Is that all you use Marc ?
0

#5 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 05 March 2007 - 06:34 PM

View Postsam, on Mar 5 2007, 05:17 PM, said:

... I did go through your css foundation file. Is that all you use Marc ?

Yup. What is the URL to the document you're having trouble with? I'd like to see it on my Safari, and FF, and IE, etc.
0

#6 User is offline   Ryan Fait 

  • W.R. Sergeant
  • Group: Members
  • Posts: 204
  • Joined: 07-January 07
  • Location:Las Vegas

Posted 09 March 2007 - 07:03 AM

A lot of people use Safari here (me included); post up a link and I might be able to help you troubleshoot.
The commercial front for my freelance web design company.
0

#7 User is offline   sam 

  • W.R. Corporal
  • Group: Members
  • Posts: 117
  • Joined: 07-February 07
  • Gender:Male

Posted 09 March 2007 - 08:57 AM

Thanks for offering to help Ryan. I have managed to solve the problem. I had set a global line height of 1 em. Somehow that was over riding what I had set for the footer and it was happening only in safari. Removing that solved the problem.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users