Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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!!!

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •