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: Which is better

  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Location
    Spokane, WA
    Posts
    512
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Which is better

    Which is better for a centered content <div> sizing:
    specified # of pixels
    OR
    using ems to allow resize like http://www.htmldog.com/articles/suckerfish/example/

    Are there pros and cons of each or does it really matter all that much?
    Thoughts determine what you want,
    Actions determine what you get.

  • #2
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Use EM's

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Pixels have the benefit of exact control over your page design -- which, on occassion, I have a need to.
    EM's allow for the flexibility of the page -- giving the user full control over the elements by resizing his/her window -- and allowing the content and the design to scale as needed.

    Em's are better all around for the user and for accessibility. As a designer, who wants exact control often, I still use pixels just for that.
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #4
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Em's allow the page to resize according to the user's font-size, meaning you will avoid the cramped look of large text squished in a fixed-width layout.
    The cons of this approach include having to take a VERY different angle with your design, as images need to allow for the growing/shrinking of the entire layout.

    Somewhere on htmldog.com is good write up on 'elastic' design (that's the popular term for 'em' width layouts)

    Edit:
    Hehe, got ya Brady:
    Quote Originally Posted by bradyj
    EM's allow for the flexibility of the page -- giving the user full control over the elements by resizing his/her window
    WRONG :P... '%' width adjusts with browser size, not 'em'.
    I'm allowed to give Brady hell, it's part of our contract
    Last edited by mindlessLemming; 02-16-2005 at 01:56 AM.

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

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