Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: font size

  1. #1
    New Coder
    Join Date
    May 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    font size

    Hi all

    Can anyone help??? To help maintain the size and shape of my page, I would like to be able to change the font size depending in what the user has font size set to

    is there a way to find out what the user has font size set to...???

    thank all

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The user has his font size set to 100% (or 1em) of his preference. That is your starting point. You can use 120% for your headings and 80% for "fine print". The size and shape of your page should adapt to user settings and device capabilities, not "be maintained".
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #3
    New Coder
    Join Date
    May 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Vladdy

    But i new most of that. Yes i can design my page around font size changes, but it would be a kinda nice touch to be able to ether resize an image to match the font or to keep the font locked to the size i want....But to do this you would need to know the font size that the user has his browser set to, can this be done????

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No it is NOT nice to keep the font the size YOU want and not letting the user to have the font he/she is comfortable is.
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's a lost battle, benlyboy. To resize an image to match the user's selected font size will be difficult work and doesn't add that much to the usability of the page. And you have to take side effects in account too - if element sizes get stretched beyond their designated limits and if that could mess up the general layout etc. I'd say it's easier to select a favorite font size and define that with ems or percentages, so a user can resize them at will, and spare yourself the work of trying to reach the perfect, universal, identical layout. Skip the issue by using relative font sizes and focus on other areas that need work.

    FWIW, here's a site that has an extensive summary how various fonts in various sizes look like on (guess what) various platforms:
    http://www.thenoodleincident.com/tut...x_lesson/font/
    De gustibus non est disputandum.

  • #6
    New Coder
    Join Date
    May 2003
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok everyone

    thanks i will skip the idea...


  •  

    Posting Permissions

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