About Pagewrapper and Document-wide settings

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"
Post Reply
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

About Pagewrapper and Document-wide settings

Post by KitchM »

Is it correct to say that the pagewrapper attribute, signified by

Code: Select all

    < body>
      <div id="pagewrapper">
has a global effect for the whole document? Or is is for the whole canvas?

Also, is this the preferred place to reference a global background gradient color?

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

Re: About Pagewrapper and Document-wide settings

Post by Dr.CSS »

The pagewrapper div in some of the default templates is the container around the whole site, keeps it a certain size etc. as for the rest of your question you may need to explain in a little more detail...
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: About Pagewrapper and Document-wide settings

Post by KitchM »

Thank you very much.

I believe that I am thinking in relationship to viewport versus canvas. I want to make sure that we are talking about the whole canvas.

What makes the pagewrapper div override other settings in other divs?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: About Pagewrapper and Document-wide settings

Post by Dr.CSS »

When you target a div in CSS it doesn't do anything that you don't tell it to do so it doesn't override anything, I think you are kind of confused about viewport, which is the area inside the browser where the website is, and canvas, which is the whole basically the same thing but used in a different manner when speaking about web sites...
Post Reply

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