Results 1 to 7 of 7

Thread: Help with CSS Sheets

  1. #1
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with CSS Sheets

    First of all I apologize for being new to CSS sheets and most likely asking a question that is probably simplistic in nature.

    I have a "Liquid" CSS that essentially works like a frame.

    I have a header, left menu, footer, & main content.

    I am trying to setup a standard for a bunch of groups and decided to learn more about CSS as it undoubtfully will help me.

    So here is my dilemina - I have my header created and placed in a <DIV> tag, along with my Menu, Footer & content. I would like to setup a sheet/web page that will allow me to work like a frame. Therefore when the main/index page is opened it would load the header, footer, menu, main - this way each time I create a page for the content it does not have to be in one sheet.

    Does any of this make sense

    Currently I have my header, menu, footer, content (many various pages) all in one HTML page - I was hoping to seperate things - Currently all my content, header, footer, menu are all in one page seperated by <DIV> therefore want to know if i can set up something in the <DIV> to load specific pages (basically my three main ones).

    I guess when I look at it I can have multiple pages, just link my menu to it all - but then If i update something in my menu or header/footer I have to update it on ALL pages - seems like a lot of work than...
    Last edited by msbutton; 01-06-2007 at 05:41 PM.

  2. #2
    Join Date
    Jan 2007
    Location
    Sweden
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    u can do it this way (with php or asp)
    Code:
    php method, put this in ur index file:
    <?php include("header.php") ?>
    <div id="index">your "text" here.</div>
    <?php include("footer.php") ?>
    and in ur "header.php" you can have:
    Code:
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <title>woohoo</title>
    </head>
    <body>
    <div id="site">
    <div id="banner"><img src="banner.png" alt="banner border="0" /></div>
    <div id="menu">
    <img src="button1.png" alt="button 1" />
    <img src="button2.png" alt="button 2" />
    <img src="button3.png" alt="button 3" />
    </div>
    Then u gotta have a footer too. (footer.php)
    Code:
    <div id="footer">
    w/e u want here</div>
    </div>
    </body>
    </html>
    so basiclly, what this does is that the code loads from 3 different files so that its easier to "fix" them.

    Code:
    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <title>woohoo</title>
    </head>
    <body>
    <div id="site">
    <div id="banner"><img src="banner.png" alt="banner border="0" /></div>
    <div id="menu">
    <img src="button1.png" alt="button 1" />
    <img src="button2.png" alt="button 2" />
    <img src="button3.png" alt="button 3" />
    </div>
    <div id="index">Your "text" here</div>
    <div id="footer">
    w/e u want here</div>
    </body>
    </html>
    <div id="footer">
    w/e u want here</div>
    </div>
    </body>
    </html>
    might be a lil hard to understand but ill try to explain it better if u need it
    Last edited by NineTwoZero; 01-06-2007 at 07:19 PM.

  3. #3
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Kalle thank you for the suggestion, but I am a little confused on how this all goes to gether.

    So do i now have 4 files
    1. Header
    2. Footer
    3. Left Menu
    4. Content
    5. PHP File

    In your last code I do not see where you are calling these files to be incorporated...

    Again sorry if this is stupid questions, just not 100% how this works.

  4. #4
    Join Date
    Jan 2007
    Location
    Sweden
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the last code is what you'll see if u check the source code

  5. #5
    Join Date
    Jan 2007
    Location
    Sweden
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    btw you can use the include on every page you're gonna have on ur site. jus change the text in the
    Code:
    <div id="index">new text.</div>

  6. #6
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Kalle - I apologize I am completely lost now - is there a website with examples that I can see, unfortunately I am a visual person

    I still do not know what I have to do, do I create a file called: header.php, footer.php, menu.php and have them all loaded into a main file, which would be my various pages of content - sorry for not fully understanding, your patience would be greatly appreciated.

  7. #7
    Join Date
    Jan 2007
    Location
    Sweden
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hmm check my "betapage" http://underground.ninetwozero.com

    im usin include on it

Bookmarks

Posting Permissions

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