Pixels and Percentages

Discussion in 'HTML & Website Design' started by J1mmy, Jul 27, 2008.

  1. #1
    I have been taught that using percentages for tables, and other elements of a web page design are better than using pixels. Could someone reinforce this idea, or suggest why it cannot be good?
     
    J1mmy, Jul 27, 2008 IP
  2. glorie

    glorie Peon

    Messages:
    123
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Pixels shouldn't be used for declaring font-sizes because it doesn't allow text size adjustments in IE.
    As for other elements,it depends on your design. If it's a fixed width layout then using pixels is the way to go. If it's an elastic or liquid layouts you can use percentages or ems.

    here's an article about the different types of layouts.
     
    glorie, Jul 27, 2008 IP
  3. abercrombie

    abercrombie Peon

    Messages:
    654
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    in terms of width of a page, i prefer to use pixels since you have more control over the presentation. makes less of a headache when adding different techologies such as integration of PHPBB into a Joomla site. i can see how percentages would be preferred by the end user especially for those with wide monitors.
     
    abercrombie, Jul 27, 2008 IP
  4. justinlorder

    justinlorder Peon

    Messages:
    4,160
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #4
    body {font-size: 12px}
    h1, h2, h3 {font-size: 100%}
    #divA {font-size: 110%}
    #divB {font-size: 105%}
    #divC {font-size: 120%}
    It is suggested to declare the basic font size and use percentage in other place .
     
    justinlorder, Jul 27, 2008 IP
  5. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yeah percentage is good.It will auto adjust with the screen resolution.btw stop using tables.Use DIVs.
     
    priyakochin, Jul 27, 2008 IP
  6. J1mmy

    J1mmy Member

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #6
    Hmmm, coming to think of it, I think pixels is better as the web page stays the same and isn't affect by the size of the window. I know on a few sites with a percentage measurement, everything changes just to be able fit in the window, this makes it distorted at times.
     
    J1mmy, Jul 28, 2008 IP