View Full Version : Beginners Question: Multiple pages and CSS?

MML Design
05-03-2011, 12:51 AM
Hey Guys and Gals,

I am quite new to the forums, as of five minutes ago, however, I do have a quite simple question, that is complicating to me. I have a page, and it is connected to CSS. So I have the homepage, it has a main article picture on the top, and the page is connected with CSS. However, I want to make other pages.

How would I go about making other pages, because I know if I alter the CSS it will screw up my main page. Please Help!

CoDeRs UnItE!!!

05-03-2011, 01:44 AM
Ideall you would keep the same basic layout structure from page to page. For instance, you would have:

<div id="wrapper">
<div id="header">Your header and or site logo</div>
<div id="maincontent">
All your main content goes here.
<div id="sideBar">Side bar menu here</div>

Then your stylesheet would contain stylerules for all your divs. If some div element changes on another page, you simply div it an id or class and style that id or class.