Setting page width

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Muzzy

Setting page width

Post by Muzzy »

Hi.
Can anyone tell me which file I need to edit to set the page width to 800px.

My picture for the header is 800px wide and I want to make the page fit for a nice look.

Thanks.
cyberman

Re: Setting page width

Post by cyberman »

In stylesheet "Layout"

Code: Select all

    div#pagewrapper {
        margin: 0 auto;
        max-width: 80em;
        min-width: 60em;
        padding: 0;
        text-align: left;
Change max-width/min-width to your value.
Muzzy

Re: Setting page width

Post by Muzzy »

Thanks for that Cyberman, will give it a go.

Mike.
Muzzy

Re: Setting page width

Post by Muzzy »

Have done as you suggested and it works just fine, only trouble is IE 6 still shows it up as a wide page but Firefox, IE 7 beta 2, Opera, Mozilla all display as 800 px.

Do I need to remove the IE hack/Javascript code from the Global Content thingy or is it something else? If I work with fixed layouts, do I need to have any IE hacks at all?

Thanks.
Mike.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Setting page width

Post by Dr.CSS »

the IE hack is for flex pages, so no need in fixed width pages...
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Setting page width

Post by tsw »

Muzzy

Re: Setting page width

Post by Muzzy »

Many thanks guys, as usual you are excellent with your advice and solutions.

Mike.
Locked

Return to “Layout and Design (CSS & HTML)”