SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Location
    Pune, Maharashtra, India
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text Expansion in IE

    Hello!!

    i am new to web development and basically working with html and css.

    while applying css to the titles or to menu items what i found is that the text appears normal in firefox or in other browsers except the IE in which it appears somewhat to be a little expanded or stretched. Because of this the alignment of the titles and the menus on the whole web site gets disturbed and the layout of the whole web site gets changed..

    what can be done regarding this ??

    i used google fonts on my site which i thought would give a standard font for all the browsers but nothing came out of it..IE also affects these fonts.

    thanks..

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,207
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Hi djsahay. Unfortunately, you can never get fonts to appear exactly the same cross browser, because each browser / system has its own way of displaying them. You could serve up some IE-only code to reduce the letter spacing, but it's a burrow you are pretty much better off not going down. Either accept the display as it is (people can always use Chrome or another browser if they choose) or perhaps try a different font that looks better.

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,623
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    You need to be less restrictive as to how things look on your website. As Ralph mentioned, each browser won't dipslay exactly the same. It's just not feasible to expect a result like that.

    Your best bet would be to rework your code to allow for some leeway aesthetically.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  4. #4
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    It also depends on how you are declaring the fonts -- some elements (tables come to mind) don't inherit fonts the same way, particularly if IE ends up in 'quirks mode' instead of 'standards mode'... but really to further diagnose we'd have to see the code for the page (or even better a live copy) since without seeing what it is you are actually doing, we can't really weigh in on it more. Without seeing what you are doing, anything we tell you is a wild guess.

    Though personally, I've had nothing but bad luck trying to use Google fonts -- which is why I generally use font squirrel and host myself; or don't bother.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •