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 7 of 7
  1. #1
    Junior Member Lester LuvApollo Sim Jj's Avatar
    Join Date
    Jan 2012
    Posts
    5
    Member #
    30461
    Liked
    2 times
    I have read many threads regarding this but I do not really understand what they are trying to convey. So, my question is: Is it recommended to code widths and heights in percentage(%) or pixels(px).

  2.  

  3. #2
    Senior Member Blackhawk095's Avatar
    Join Date
    May 2011
    Location
    Kentucky (USA)
    Posts
    384
    Member #
    27969
    Liked
    45 times
    Quote Originally Posted by Lester LuvApollo Sim Jj, post: 228218
    I have read many threads regarding this but I do not really understand what they are trying to convey. So, my question is: Is it recommended to code widths and heights in percentage(%) or pixels(px).
    It really depends on the type of website you are trying to build.

    If you want to build a website so that its width and height will adjust to the size of the browser, then you want to build it in percentages.

    If you want to build a website so its width an height remain the same no matter how large the browser, then you want to code in pixels.
    [COLOR=rgb(0, 51, 102)]Student Web Designer[/COLOR]
    [COLOR=rgb(0, 51, 102)]If you thought something I said was helpful. LIKE IT![/COLOR]

  4. #3
    Senior Member Blackhawk095's Avatar
    Join Date
    May 2011
    Location
    Kentucky (USA)
    Posts
    384
    Member #
    27969
    Liked
    45 times
    Here are some examples of what I'm talking about. I hope Ronald Roe doesn't mind if I use his website as an example.

    http://www.roedesigns.com/ (designed using percentages) <-- Ronald Roe's website

    http://www.my-testing-area2.netau.ne.../tech_tidbits/ (Designed using pixels) <-- I don't have a personal website yet so here is one of my current projects.

    Load up these websites and and then adjust you browser to different sizes. You will see that the website that was made in percentages will adjust to the browser's size and the website made in pixels will not.
    Ronald Roe likes this.
    [COLOR=rgb(0, 51, 102)]Student Web Designer[/COLOR]
    [COLOR=rgb(0, 51, 102)]If you thought something I said was helpful. LIKE IT![/COLOR]

  5. #4
    Junior Member Lester LuvApollo Sim Jj's Avatar
    Join Date
    Jan 2012
    Posts
    5
    Member #
    30461
    Liked
    2 times
    Tks for the reply BlackHawk095
    Blackhawk095 likes this.

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Fixed layouts, which would be defined in pixels, are preferred by most designers, and for most websites. Fixed layouts give you better control over aesthetic precision, which makes the web more like print. Even if you want a liquid layout (which started losing popularity about 15 years ago, and virtually disappeared about 10 years ago), only certain layout elements should be given a % width or height. Fonts should always be specified in em, so as to be ADA compliant.

  7. #6
    Junior Member Lester LuvApollo Sim Jj's Avatar
    Join Date
    Jan 2012
    Posts
    5
    Member #
    30461
    Liked
    2 times
    Now I am clear with px and % but i am confused with em and pixels what are the differences??

  8. #7
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by Lester LuvApollo Sim Jj, post: 228253
    Now I am clear with px and % but i am confused with em and pixels what are the differences??
    http://webdeziners.blogspot.com/2010...ls-and-em.html

    http://pxtoem.com/
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


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 07:01 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com