How to link an HTML page to a Div tag in another?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gilbelocity
    New Member
    • Apr 2007
    • 2

    How to link an HTML page to a Div tag in another?

    Hey guys,

    I'm kinda new to HTML/CSS. I am making a website in Dreamweaver 8. I'm having trouble doing something, and I don't even know if it is possible. I made a page using CSS and DIV tags to define each pane. Now the center (main) pane will show whatever page you want to display (ie. Home, Media, Contact, etc.). I made each page as a separate HTML file (ie. Home.html, Contact.html, Media.html, etc.), is there a way to link each of these pages to the main pane (div tag) so I can keep all other panes unchanged (menus, banner, etc.) and just display the content in the mentioned center pane? Thanks!
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Originally posted by gilbelocity
    Hey guys,

    I'm kinda new to HTML/CSS. I am making a website in Dreamweaver 8. I'm having trouble doing something, and I don't even know if it is possible. I made a page using CSS and DIV tags to define each pane. Now the center (main) pane will show whatever page you want to display (ie. Home, Media, Contact, etc.). I made each page as a separate HTML file (ie. Home.html, Contact.html, Media.html, etc.), is there a way to link each of these pages to the main pane (div tag) so I can keep all other panes unchanged (menus, banner, etc.) and just display the content in the mentioned center pane? Thanks!
    The best way to do this is with server side includes. You make the menu header etc.. an included file so you only have to update one place when you change a menu or whatever. Do you have any server side scripting available? PHP or ASP?

    Comment

    • gilbelocity
      New Member
      • Apr 2007
      • 2

      #3
      I'm actually not familiar with those, but I do have Dreamweaver, so if there's a crash course I could get from you (or if you could copy the script), I would be very thankful.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        What you want to look into is <frames> and <iframes>. I don't encourage that because there are inherent problems with those but it may be what you want.

        Comment

        Working...