limit site width

Last post 05-13-2008 11:51 AM by JamesSAEP. 2 replies.

Sort Posts:

  • limit site width

    05-05-2008, 2:37 PM
    • Loading...
    • JamesSAEP
    • Joined on 01-15-2008, 11:51 AM
    • Posts 124

    Using TBH and the TemplateMonster theme, how can I limit how wide the site will get in the browser?  I don't want the site to get any wider than 1200 px wide.

    I have tried putting max-width: 1200px in the css body tag, but the rightcolumn div is not limited. 

     

    Thanks. 

  • Re: limit site width

    05-05-2008, 4:25 PM
    • Loading...
    • ashrafur
    • Joined on 04-15-2008, 7:14 AM
    • Dhaka, Bangladesh
    • Posts 60

    <html>

    <body style="text-align:center">

    <div style="width:1200px; position:relative;">

     

    </div>

    </body>

    </html>

    Ashrafur Rahaman
    http://www.ashrafur.com
  • Re: limit site width

    05-13-2008, 11:51 AM
    • Loading...
    • JamesSAEP
    • Joined on 01-15-2008, 11:51 AM
    • Posts 124

     Thank you for the reply.  I tried your solution, but it has a problem.  The "width:1200px;" makes the page 1200px wide on loading, no matter what the width is of the browser.  So, if a browser is set to only 800px wide, there will be a scroll bar on the bottom to see the remaining 400px of data on the right side of the page.

     What I want to do is have the page load with a width of what ever the browser is set to, with a maximum width of 1200px.  So, if the browser is set to 800px wide, the webpage will only render at 800px.  If the browser is set to 1024px wide, the webpage will render at 1024px wide.  If the browser is set to 1600px wide, the webpage will only render to 1200px wide.

     

    Thanks,

     

    Jim
     

Page 1 of 1 (3 items)