Welcome to the Real Estate Forum


The "ORIGINAL" Real Estate Social Network" SINCE 2005 and your #1 Resource for all things Real Estate


  •  »Over 35,000 Members
  •  » Answer Questions From "REAL" Buyers & Sellers
  •  »Ask Questions & Share Stories With Fellow Real Estate Professionals.
  •  »Read Articles & Blogs written by Real Estate Professionals.

...you have come to the right place!


YES! I want to register an account for free right now!


p.s.: For registered members YOUR FORUM NAME is free of ads

Results 1 to 2 of 2
  1. #1
    wryfhk22 is offline Banned
    Join Date
    Mar 2011
    Posts
    177

    Default Making page adapt to monitor resolution

    I have a to make web page containing 2 columns. This is done.
    Now what I would like to insert in the code is something like this:
    The 2 columns should be full screen on any resolutions. Something like the page would adapt to the monitor resolution.
    The percent would be 80% for the first column 20% for the second one.

    What I don't know - is how to do that. Would a table resolve this problem?
    What would be the code for this?

    Suggestion are well appreciated.

  2. #2
    phpsqlrealty is offline Renter
    Join Date
    May 2011
    Posts
    2

    Default

    All you have to do is set the width of the body element to 100%, then those columns will resize too 100% of the screen width..

    e.g

    css file:

    body {
    width: 100%;
    }

    #middle {
    float: left;
    width: 80%;
    margin: 0px;
    padding: 0px;
    }

    #sidebox {
    float: right;
    width: 20%;
    margin: 0px;
    padding: 0px;
    }


    and html:

    <body>
    <div id="sidebox">
    </div>
    <div id="middle">
    </div>
    </body>
    --
    Start your real estate site in minutes using phpSQLRealty.com real estate classifieds script

Posting Permissions

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