Frames affecting my links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mxroar
    New Member
    • Apr 2010
    • 2

    #1

    Frames affecting my links

    I'm new to HTML, but have started taking a class in it and I love it. I decided to offer my newfound skills to my father to make a webpage for his company, but I'm having some trouble with the layout.

    Here's what I want (and can get on the homepage):
    -a banner accross the top
    -a menu down the left side with links to sections of the site
    -to have the remaning space hold the content
    -all 3 sections to have different background colors

    Now here's what I did:
    1. My index.html file pulls up a banner.html file on the top and another, lets call it splitscreen.htm l on the remainder of the page.
    2. The splitscreen.htm l file pulls up a menu.html on the left and a content.html on the right.

    It all works fine for the homepage, but a problem arises when I click a link in the menu. Instead of replacing the content.html with a new file, it replaces the menu.html with a new file, leaving me with a banner across the top, the home page content, and a very skinny page on the left.

    Is there a way to have the link replace the content.html with another file?
    Is there a different hierarchy between the pages to make this work?
    Is there some much easier way to do what I'm trying and I just seem crazy to all of you?

    In any case I would greatly appreciate some help, so thanks in advance.

    -Max
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    the obvious fix is to not use frames. CSS provides enough means to put any HTML element where you want it. (e.g. you can position a <div> with position: fixed, so that it stays in the same place in the window)

    the immediate fix is to use the target attribute. (I think)

    Comment

    • mxroar
      New Member
      • Apr 2010
      • 2

      #3
      Thanks for the help.

      Comment

      Working...