Page 1 of 1

How you do the page wrap?

Posted: Thu Nov 15, 2007 9:34 pm
by wjhsmf
Hi,

You FORUM theme seems modified a bit. Especially, the way that is wrapped to a kind of fixed width is very nice. How you made it?

Thank you.
Jimmy

Re: How you do the page wrap?

Posted: Thu Nov 15, 2007 9:51 pm
by KO
If look at the code you notice that all page content is wrapped inside div called #pagewrapper. This one has min-width and max-width in css. That is controlling the page width. For IE6 there probaby some js to da same thing.

Re: How you do the page wrap?

Posted: Fri Nov 16, 2007 8:21 pm
by wjhsmf
Thanks KO.

Do you mean all is done by this?

Code: Select all

<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
Jimmy

Re: How you do the page wrap?

Posted: Fri Nov 16, 2007 9:50 pm
by Dr.CSS
The code you posted is for IE as it doesn't understand min/max width set in CSS...

    div#pagewrapper {
        margin: 0 auto;
        max-width: 80em;
        min-width: 63em;

        padding: 1px;
        text-align: left;
    }

Re: How you do the page wrap?

Posted: Fri Nov 16, 2007 10:39 pm
by KO
Yeah.. that's how it goes.