Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-03-2011, 12:51 AM   PM User | #1
MML Design
New to the CF scene

 
Join Date: May 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
MML Design is an unknown quantity at this point
Smile 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!

CoDeRs UnItE!!!
MML Design is offline   Reply With Quote
Old 05-03-2011, 01:44 AM   PM User | #2
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Ideall you would keep the same basic layout structure from page to page. For instance, you would have:


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>
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.
__________________
Teed
teedoff is offline   Reply With Quote
Reply

Bookmarks

Tags
flash, web design, xhtml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:20 AM.


Advertisement
Log in to turn off these ads.