How you do the page wrap?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
wjhsmf

How you do the page wrap?

Post 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
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: How you do the page wrap?

Post 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.
wjhsmf

Re: How you do the page wrap?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How you do the page wrap?

Post 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;
    }
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: How you do the page wrap?

Post by KO »

Yeah.. that's how it goes.
Locked

Return to “CMSMS Core”