Fitting web pages within the computer screen

Discussion in 'Programming' started by diyaots, Apr 3, 2012.

  1. #1
    Hi there,

    I have a couple of web pages created but when I am previewing them in internet browser, the web pages somehow not fitting the screen when I trying to display them with different pc.

    Meaning to say, if I create web page using larger screen pc and the webpage cant be fully preview when using a smaller screen pc. How can I make my web pages fit the screen flexibly?

    Thanks & Regards
    diya
     
    diyaots, Apr 3, 2012 IP
  2. mwwebsolutions

    mwwebsolutions Active Member

    Messages:
    69
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    50
    #2
    Are you using absolute or relative widths in your HTML
     
    mwwebsolutions, Apr 3, 2012 IP
  3. Pēteris Gailītis

    Pēteris Gailītis Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use % in you style sheet as value of width.
    example:

    #divid {
    width:100%;
    background-color:#000;
    }
     
    Pēteris Gailītis, Apr 11, 2012 IP