Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

font size broken on new browsers

- - - - -

  • Please log in to reply
6 replies to this topic

#1
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPipPip
  • 1,059 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

on Opera 11 and 12, old firefox (4 i think)

my webpage which has in css set-up "font-size"

to 1em and 1.4em, worked

 

but on new Iron/Chrome, Firefox and Opera 15/16/17(chrome)

the size in em is simply totally different rendered

(site always zoomed in 100% - normal)

 

check the screencaps, left is older, right is newer browsers:

 

http://i39.tinypic.com/14o0uhk.png

 

so what the hell is happening ?
this isn't something ancient... it is css 2

 

so just in case I switched to %
so I tried with 105%, then 112%
and guess what... yet again huge difference in font size render

 

seems like only Opera 11 and 12 render it correctly, while all other browsers are stubborn forcing their own crap

so again what the hell is happening ?


Edited by vinifera, 15 August 2013 - 06:06 PM.

If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066


How to remove advertisement from MSFN

#2
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,516 posts
  • Joined 27-November 10
  • OS:none specified
  • Country: Country Flag

No-one will be able to help without actually seeing the HTML and CSS of the site :angel

 

Is this the same one you sent me link some time ago? For me the text size is 16 px (which is 1em in CSS).


post-47483-1123010975.png


#3
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPipPip
  • 1,059 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

yes same link

but I don't know which browser renders it correctly then

I'm lost (actually I'm p***ed) :P


Edited by vinifera, 16 August 2013 - 06:23 AM.

If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#4
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,877 posts
  • Joined 28-April 06
  • OS:Windows 7 x86
  • Country: Country Flag

Donator

1em = amount of pixels that the default font size of the browser uses. So if the browser you are using has a default font size of 16px, then 1em = 16px. So it is possible that ALL browsers are rendering the size correctly but some are using different default font sizes.

 

I've always used px instead of em.


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg


#5
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPipPip
  • 1,059 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

good point
I always thought system is one that sets the "default font size" :P

 

ok so to pixels i will switch, thanks :)


If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066

#6
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,516 posts
  • Joined 27-November 10
  • OS:none specified
  • Country: Country Flag

Using pixels is bad because pixel density varies and even a very small screen can use high resolution. Other than that, it's impossible to resize pixel sized fonts in older versions of IE (zoom doesn't affect them).

 

100% or 1em should mean 16 px for all Windows desktop browsers unless you've set something different in their configuration. System DPI settings can also have effect on browsers' font sizes (new versions of Firefox, old Opera).


post-47483-1123010975.png


#7
vinifera

vinifera

    <°)))><

  • Member
  • PipPipPipPipPipPip
  • 1,059 posts
  • Joined 27-August 09
  • OS:Windows 7 x86
  • Country: Country Flag

meh I don't care for old IE, it  can't support squat

as for % I already did that (1st post), I got same results as with em

while now with px it looks same on all browsers (altho many dislike px, but seems to be best solution)


If you want true Windows user experience
try Longhorn builds: 3718, 4029, 4066




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users