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 4 of 4

Thread: font-size

  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    font-size

    in the css file, in the font-size property, I want to have two different values:

    1- I want to make it size 2
    2- I want to specify it "smaller" in order to discard the browser default - whatever it may be.

    How can I do that without causing a conflict since both are considered under "font-size" property?

    Thanks!

  • #2
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What do you mean by 'size 2'? 2 pixels? 2 points? 2 ems?

    You want to override the browser default? What about those people who have difficulty seeing? They'll be used to the text being a certain size, right? Don't change that.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    size two meaning 2 pt.

    since with 'smaller' at 2pt, it will be readable, it's ok.

    I know most of the user's settings thru web stats, so this will not be a major change.

    is it possible?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Web stats do not show the font setting on the visitor's browser.
    You do not know what is readable to your user and what is not.
    To make your site readable, leave your default font at 100% or 1em. Scale your headings from there.
    If your site font looks too big to you - change YOUR browser settings.
    If you want to make an extra step and make your site more user friendly (there are users who do not know how to adjust their browser setting) - allow them to set font size and family to their preference (see the customization wiget on my site for an example).
    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"


  •  

    Posting Permissions

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