Welcome, guest! We are a creative arts/general discussion community, and welcome guests and members alike to participate in our discussions. While registration is not required to post, we strongly recommend considering an account with us, as it a quick, free, and easy way to fully utilize all of the features on our forum. We hope you enjoy your stay!

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Frames based design with unified menu and sub-pages loading on index.html
Seeing as there have been a few template's I figured I might as well share a basic version of the site design I came up with most recently since it not only has a unified page menu but only uses HTML and CSS!

this should be the index .html

<!DOCTYPE html>

<link rel="stylesheet" href="style.css">


<frameset cols="200px,*" frameborder="0" border="0">
<frame src="menu.html" name="nav">
<frame src="home.html" name="main">

<body bgcolor="#ffffff">

your home page.html file name/location should be put where home.html is.

your navigational menu should be placed where menu.html is

finally if you change cols to rows you can have your menu on top or below your main page so it's very flexible for a basic design.

<!DOCTYPE html>
       <link rel="stylesheet" href="menu.css">
<body bgcolor="#ffffff">
   <table class="custom menu class here" cellspacing="0" cellpadding="0" border="0"><tbody>
 <tr><td><center><a href="home.html" target="main">Home</a></center></td></tr>
 <tr><td><center><a href="item1.html" target="main">item1</a></center></td></tr>
 <tr><td><center><a href="item2.html" target="main">item2</a></center></td></tr>

this is the menu code I use.

the target is set to main to go with the above html, so long as your target in this page matches the name of the frame you want it to show up in any link you setup this way will load in that sub frame specifically thus keeping your menu intact, and your visitors never actually leave your primary page. as for the main page, you can put whatever there because it will change depending on what option they click on the menu, just make sure you set your initial page to the one you want the site to load first on your index.html and "home" buttons.

as for the table, I find this makes a very nice menu that works on just about every device with a graphical web browser, you can set the class to customize the look and feel using CSS the same way you use buttons

I like to use a separate CSS file for just the menu so I can design it without affecting the rest of the site.

/*menu font */
@font-face {
  font-family: familyhere;
  src: url('fontfile');

and finally this bit allows you to use a custom font for menus thus avoiding the need to use images for menu buttons and allowing the site to load that much faster.

I've gone ahead and taken a screenshot that shows how it looks put together with a VERY rudimentary home page, colored so you can see how it separates the menu from the main page.
It's very basic but it works!

[Image: lRSsrxI.png]

and the best part?

the frame rows and columns, you can have as many as you want, have different links go to different pages, and all sorts of stuff, so if you want say a 3 column page layout, you can totally do so.

should work great for blogs too.

anyway hope this helps someone out there lol, it took me 6 months to work out!
[Image: oEirbE7.png]
Thanks given by: Guardian , Darth-Apple

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Tutorial] Collapsible boxes using only CSS and HTML SpookyZalost 2 948 October 5th, 2018 at 3:18 PM
Last Post: SpookyZalost
  [Tutorial] How to use the Slice tool for web pages & elements Harry K. 0 2,054 November 27th, 2014 at 6:17 PM
Last Post: Harry K.
  [Tutorial] How to use the Slice tool for web pages & elements Harry K. 0 2,002 November 27th, 2014 at 6:13 PM
Last Post: Harry K.

Users browsing this thread: 1 Guest(s)

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication
Proudly powered by MyBB 1.8, © 2002-2019 MyBB Group. Hosted by Ramnode.
Design/theme © 2014 by Makestaton designers.
All rights reserved.
Also see Chatcave chat hosting (owned by us), Forumonic.com (a Harry-K community) and Zalost's Gridzone