SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    problems with font size using css and em

    I seem to have a very small problem with one of my websites, where a lot of people have been saying that they cannot read the text its way too small.

    I have checked with NS4.08, 4.74, 6, 6.1, IE6, Opera 5 and they all read fine (well a bit large for the older version of NS but more than readable)

    What I have basically done is used the em tag for font size and I wonder if I should stick to pt or px? i.e. lose the ability for people to change the text size but at least make it readable for all?

    Has anyone had the same problem? or has an idea on what I should do.

    One of the guys had viewed it in an internet cafe and he says its unreadable..

    Sorry cannot provide a link as its a passworded area aite

    Sarah
    Regular user

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd go for px.

    That's just my personal preference.

    I tend not to like leaving the user the ability to change
    the way i wanted my page to look - no matter what reason they have.

    Some eco-warrior type will come up with the " poor old pensioners " comment - but i really think that letting
    the user change the font size is just asking for trouble with layout.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I am tending to agree with you I think I was trying to please everyone and all browsers too and its still giving me huge problems.

    thanks I am currently switching to px and I will see what new comments I get.

    thanks for your thoughts
    Sarah
    Regular user

  4. #4
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .oO( probably a bunch of complaints about not being able to change font size )

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  5. #5
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    probably but then when its a 170 page php administrator type CMS if all they have a problem with is the text size then I will be pretty happy
    Regular user

  6. #6
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NOT a chance.

    You'll get people asking you why your site isn't working anymore over the phone... the conversation will take fifteen minutes and eventually you'll hear:

    "It's kinda hard coz I can't see the screen very well"

    You'll ask why and they'll tell you they're in a powercut !!!

    Don't laugh - things like that really HAPPEN!

    We've had one where a customer was complaining that their
    system was down - it took at least five minutes for them
    to mention that they'd had a break-in and someone had actually
    taken "The little box the wires go into" that we so indearingly call a "server" in the business

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  7. #7
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    so true
    Regular user

  8. #8
    SitePoint Enthusiast rreames's Avatar
    Join Date
    Jun 2002
    Location
    Iowa
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some browsers use ems relative to their parent rather than the main size. Example: If your p, and li are .8em then a list in a paragraph will be .8em of the p, which is .8em of its parent, and not the body. If you use pixels some people cannot resize the fonts easily if they want to. Ems can be used effectively but some planning must be done.

    Its amazing that the most popular browser has the worst support for simple, yet important things.
    Apathetic Activist.
    reames.org

  9. #9
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    well I tried to set the font size at the beginning to 1em and then everything SHOULD have been relative to that BUT needless to say my planning didn't work out - anyway I am sticking to px and I will see what happens.. I don't usually get bothered by incompatibility issues but this is just plain weird..

    thanks

    Sarah
    Regular user

  10. #10
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've never liked "em" - for reasons i stated.

    I'm one of those people that like to know exactly what
    the output will be - and not knowing how it may look
    at the other end on a normal browser un-nerves me!

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  11. #11
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    although very true I as trying to be nice to those that didn't have the eyesight to see nice small text... all good intentions
    Regular user

  12. #12
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "With Pride filled hearts and a care for life the barbarians left their gates to destroy the gates of the underworld"
    Pliny the Elder - i *think*...
    I remember translating something like that a while ago ...
    and it sounds like his style of short comment.

    (although i'm sure the first use of gates was different - perhaps a completely different word or term such as hoard - but nothing springs to mind and a internet search has yielded nothing)

    Flawless
    Last edited by Flawless_koder; Jul 22, 2002 at 07:52.
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


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
  •