Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
05-03-2011, 12:51 AM #1
- Join Date
- May 2011
- Thanked 0 Times in 0 Posts
Beginners Question: Multiple pages and CSS?
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!
05-03-2011, 01:44 AM #2
- Join Date
- Aug 2010
- High Point, NC
- Thanked 363 Times in 360 Posts
Ideall you would keep the same basic layout structure from page to page. For instance, you would have:
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.Code:<body> <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> </div> </div> </body>