Results 1 to 6 of 6

Thread: CSS and smaller text

  1. #1

    Thread Starter
    Hyperactive Member richy's Avatar
    Join Date
    Jan 1999
    Location
    Liverpool, England
    Posts
    353

    CSS and smaller text

    We have designed a site and everything seems ok, unless the user has smaller fonts set on their browsers.

    We currently have the normal text set as font-size: 0.8em; and when the user has smaller text set (View->Text Size->Smaller) then the text is unreadable. Apart from making all the text bigger, is there a work around this?
    ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.

    Richard Whitehouse.
    Join the Footie Predictions League


    "Make it idiot proof and someone will make a better idiot."

  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Don't worry about it? If their text size is that small, it becomes their problem if they can't read it. And honestly, you are probably only singleing out 2% of your viewers.

    Also, I don't know if it makes a difference, but I use the "pt" notation instead of "em" and it shows up the same no matter what size the user has the text set to. Maybe that is your solution.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Only on IE (and it's usually considered a bug there by most developers), all other browsers scale all fonts.

    But I agree, if the user has small fonts set and the text becomes unreadable, that's their problem.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    If you specify the font size using px, then the text cannot be scaled in IE. (Correct me if I'm wrong)

    In FireFox though, you can enlarge the text so that it looks like you're being attacked by mutant disgruntled alphabets from another planet.


  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    That's correct. Every browser but IE applies text zoom to all text, while IE doesn't apply it to text specified in px, pt, and I think real-world units like mm (if they're even valid). IE applies it only to em, ex, % and keywords like small.
    Opera applies the zoom even to images, which no other browser does.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6

    Thread Starter
    Hyperactive Member richy's Avatar
    Join Date
    Jan 1999
    Location
    Liverpool, England
    Posts
    353
    I modified the CSS to use the keywords like small, smaller etc and that seemed to do the trick.

    Thanks everyone for your help. Its one of those things I never even thought about checking. At least I found out SkySports.com have the same problem so its not just me!
    ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.

    Richard Whitehouse.
    Join the Footie Predictions League


    "Make it idiot proof and someone will make a better idiot."

Posting Permissions

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



Click Here to Expand Forum to Full Width