Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: em font sizes

  1. #1
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    I want to make my new site text-size changeable, but as I will be making use of DIVs, can I still use x-small etc? Would you recommend EM sizes over x-small? What exactly are the em sizes anyhow, because I am a little confused. Thanks.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  2.  

  3. #2
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    I'm not sure, but isn't EM relative to what the parent element is set to?

    Example:
    Code:
    <div style="font-size: 10px;">
    This is 10px.
    <div style="font-size: 0.5em;">
    This is 5px.
    </div>
    <div style="font-size: 2em;">
    This is 20px.
    </div>
    </div>
    0.5em would make it 50% of the 10px font (5px) and 2em would make it 200% of the 10px font (20px).

    Please correct me if I'm wrong.
    JR

  4. #3
    Senior Member jlgosse's Avatar
    Join Date
    Jan 2004
    Location
    Newfoundland, Canada
    Posts
    1,037
    Member #
    4570
    Liked
    7 times
    I think .em is a size that varies depending on what font setting you have it on (very small, small, medium, etc), as well as your resolution.

    It makes a dynamic size font that when you view it on a big resolution its not HUGE and on a large resolution it will be bigger!

    Correct me if I'm wrong in correcting him!



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:59 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com