0

http://jsfiddle.net/k8mycshL/

<frameset rows="10%,*">
  <frame src="menu.html">
  <frame src="sites.html">
  </frameset>

Hi there. I was trying to make a frame setup but it doesn't work :'(
Could you help me? Let's say the menu.html and sites.html are just normal pages, so I don't think I should upload those..

I'd like it to be kinda like this: [wireframe] (http://framebox.org/rRXX) Where in the menu there are links external sites which will be displayed in the other section

Thanks in advance!
Robin van der Noord

  • Don't use frames. Also what's not working about it? – APAD1 Sep 04 '14 at 14:49
  • Yeah I know... But what else should I use? CSS probably huh? @Lee –  Sep 04 '14 at 14:50
  • @APAD1 well it just doesn't display anything. Neither locally as on my testing website [here it should display the frames] (http://rvdnproductonstest1.net78.net/tumblr.html) –  Sep 04 '14 at 14:51
  • Are those pages, `menu.html` and `sites.html` at the same directory as your frameset page? – LcSalazar Sep 04 '14 at 14:54
  • Definitely CSS. You could use inline-blocks, which would all then condense into vertical blocks on mobiles – Lee Sep 04 '14 at 14:55
  • @LcSalazar yes they are as you can see on [this page] (http://rvdnproductonstest1.net78.net) –  Sep 04 '14 at 14:55
  • @vico wow you really helped me with that ;) –  Sep 04 '14 at 14:55
  • Is there any reason why you're approaching it this way? Why not just have all the HTML in a single page and use divs to break the content up? – APAD1 Sep 04 '14 at 14:56
  • Because later on I want to use the menu.html to load different iframes in the other part of the screen, kinda like tabs in your browser @APAD1 –  Sep 04 '14 at 14:58
  • PHP would be a better solution. – APAD1 Sep 04 '14 at 15:08
  • @APAD1 maybe but I don't speak PHP that good ;) –  Sep 04 '14 at 15:10
  • And I'd like my website to be pure html/css(/js) –  Sep 04 '14 at 15:11
  • But thanks for all your advice but first I'd like to know why the frames don't work??? –  Sep 04 '14 at 15:12
  • Couldn't tell ya, it's working perfectly fine for me. The only potential issue I could see is that your 2 html files are not in the same folder as the index page as @LcSalazar suggested. – APAD1 Sep 04 '14 at 15:22
  • Maybe it's my browsers I'll test it on another computer –  Sep 04 '14 at 15:23

1 Answers1

1

As already mentioned in the comments, it is preferable to avoid using frames.

But in answer your question, frameset should not be included in the body element.

Try it at: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_frame_cols

Tobías
  • 6,142
  • 4
  • 36
  • 62
  • What would you suggest, CSS or PHP. Because if you say PHP I can give up my project ;) –  Sep 04 '14 at 15:27
  • If your website **must** be pure html/css(/js), then PHP can't be an option :P If it's a small web with css you can be fine. If not you could end up with a huge html. Then maybe I would try loading with js (http://stackoverflow.com/questions/14735762/load-html-page-dynamically-into-div-with-jquery) – Tobías Sep 04 '14 at 15:37
  • Well I'm going to build something around it so it's a mac app, and my method doesn't accept php so yeah. It's going to be mostly iframes so it's small indeed –  Sep 04 '14 at 15:40
  • Thanks I'll try the js-loading –  Sep 04 '14 at 15:41