SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Location
    college park
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Combining More than just CSS to HTML

    Hi,

    This is my first post to the site- I dont know how much detail I need to give:
    I am new to CSS (if you check out www.studentorg.umd.edu/nsslha you can see my page without css).
    I want to have my heading and my navigation bar show up on every page. Can those be inserted through one html page and just "link" through to every content page or do I have to put the coding for the navigation bar and title on every sheet of html mark-up. If I can do it seperately (have navigation bar and title on seperate document) what would the coding and how would I link it?

    Thanks,
    Katie

  2. #2
    SitePoint Wizard rbutler's Avatar
    Join Date
    Jul 2003
    Location
    Springfield, MO
    Posts
    1,867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like you are messing with frames. If that's the case, then simply pull in your navigation bar with each additional page. For example, if your navigation page is nav.html, then within your frames, pull it:

    Code:
    <frame src="nav.html" name="navigation">
    Of course, you could replicate that design pretty easily with a two column layout in CSS, which would be better than frames. Something like:

    http://midwestwebdesign.net/tutorials/css/index.html
    Ryan Butler

    Midwest Web Design

  3. #3
    SitePoint Member
    Join Date
    Sep 2004
    Location
    college park
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Ok, my question wasnt clear enough.

    I have a two column layout with css in my revision of my site.
    The original site used the frames.

    I want to take the revised edition (with CSS) and put the navigation bar on each page- how would i do that without using frames? or would frames become necessary?

    Thank you for your help (I like your site),
    Katie

  4. #4
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You would either use a server-side include like PHP or ASP to include the navigation bar file:
    PHP Code:
    <?php
    include ("inc/navbar.php");
    ?>
    Or if you don't have either of those installed on your server, you could use SSI:
    HTML Code:
    <!--#include file="navbar.html" -->
    Again, your server would need to be set up to do this (usually that means a Unix box).


  5. #5
    SitePoint Addict
    Join Date
    Apr 2003
    Posts
    332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Katie,
    Look into the <object>....</object> element. May be what you need.

    Andy

  6. #6
    SitePoint Member
    Join Date
    Sep 2004
    Location
    college park
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Thanks guys,
    Im going to just use the frames... Make my life simplier as I am having enough issues getting my CSS script to look correct (my first page ever). I can play with something more complicated after I get the pages up and running the way I want it to.
    I'm sure I'll be posting again soon,
    Katie

  7. #7
    SitePoint Member
    Join Date
    Sep 2004
    Location
    college park
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    It doesnt work- at all

    Ok,
    I set it up with frames and the whole layout doesn't work- it will only work with dependence on the CSS. Maybe im doing something wrong (probably). As of now I will just put the navigation and heading code on each page (there arent too many pages).

    Maybe after the page is up someone can explain a better way.
    Katie


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
  •