3 Replies - 768 Views - Last Post: 14 March 2012 - 10:06 AM

#1 radziol94  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 11-March 12

Absolute value of font-size

Posted 14 March 2012 - 03:59 AM

Hi,
Is there any way to set the h1 text-size value to be printed in every browser in the same way?
For example I've got code:
 h1#data {
    margin: 0px;
    font-size: 80px;
 }



and opera prints it smaller than chrome. How to solve this problem?

This post has been edited by Dormilich: 14 March 2012 - 07:53 AM
Reason for edit:: fixed code tags

Is This A Good Question/Topic? 0
  • +

Replies To: Absolute value of font-size

#2 exiles.prx  Icon User is offline

  • D.I.C Head

Reputation: 65
  • View blog
  • Posts: 241
  • Joined: 22-November 10

Re: Absolute value of font-size

Posted 14 March 2012 - 06:03 AM

That is because different browsers handle and display elements differently. Which is why your h1 tag may look different across multiple browsers. You can try setting your font-size to your desired size or try using line-height, but I can not guarantee that they will display as the exact same size across all browsers.
Was This Post Helpful? 0
  • +
  • -

#3 tpowell  Icon User is offline

  • New D.I.C Head

Reputation: -11
  • View blog
  • Posts: 21
  • Joined: 05-March 12

Re: Absolute value of font-size

Posted 14 March 2012 - 09:33 AM

I have had the same problem... but it turned out to be that I had the zoom on 75%
Was This Post Helpful? 0
  • +
  • -

#4 Shane Hudson  Icon User is offline

  • D.I.C Technophile
  • member icon

Reputation: 343
  • View blog
  • Posts: 1,286
  • Joined: 06-December 09

Re: Absolute value of font-size

Posted 14 March 2012 - 10:06 AM

This will set the actual font size to be absolute (though as tpowell make sure you set zoom:1; for IE) however different fonts may render differently across platforms. Usually you can get it pretty exact, but not always.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1