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 6 of 6
  1. #1
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    ive always used "px" .. but what are the pros and cons of the other units?

    anyone knowledgeable of this?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,717
    Member #
    5580
    Liked
    718 times
    There's px, pt, em

    I think em is most accurate and have read where
    that's what is best to use. I use pt (point) a lot
    out of habit. I'm used to referrring to font points.

    px can cause differences between IE and FF when
    dealing with fonts. I can't find an example right now,
    but I did see one once.


  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    • For fonts, pt is fairly reliable. Percentages once you specify a base font are great, but too bad IE craps it up (renders the fonts a bit too large).
    • For element positioning, I use px. Somebody at work uses em, noting that font size changes will also change element positions in a desirable way. I have yet to turn around to his side but at least I get his point.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Senior Member kade119's Avatar
    Join Date
    Feb 2007
    Location
    USA
    Posts
    532
    Member #
    14888
    Liked
    1 times
    cool thanks guys

    yeah i think em if used on elements increases the elements size when maginfying so the copy doesn't overrun the edges, but im like u ... px is the easiest and what i learned using... but for my text i might trying converting to the "em"...

    thanks for the fast respones..

  6. #5
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    Usually for text, I first do a 76% to get a good baseline. Headings use more percentages, like H1 would be at about 220%. As for other uses (like text in sideboxes etc), I use ems like 0.9...
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  7. #6
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Ems and percentages are typically pretty good and more or less equivalent. Pixels are bad because DPI varies between platforms, and therefore you can more easily guarantee positioning as you expect it if you use ems, which are more DPI-independent.


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
  •  

Search tags for this page

layout unit of mesurement ie

Click on a term to search for related topics.
All times are GMT -6. The time now is 02:59 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com