Basic Layout - Sidebar without frames [Confused]
Hello everyone,
Firstly, please forgive me for not searching through the limitless amount of threads which have been created on this topic. However, I find myself quite confused regarding the creation of a 'sidebar' or 'sidemenu' without the use of frames. Thus allowing the menu to stay intact on the left side, while the content remains in the middle. Of course, this would all be done without the use of frames.
Now, my confusion regarding this is whether or not this is created using CSS or pure HTML.
This method is used on many websites, and I've viewed the source many a time and have been unable to grasp what allows this.
Here is an example of what I am talking about: angeldragon.com
Any help on this would be greatly appreciated.
Regards,
Archemedes
02bunced posted this at 08:47 — 31st August 2005.
He has: 412 posts
Joined: May 2005
OK. Angel Dragon use tables for their layout, so they have used a table to place all their menu and content to where they want them. Consequently, they repeated the same code on each page and simply changed the content coding to reflect what they wanted to appear. To recap, it is simply a coded layout that changes content
Archemedes posted this at 08:52 — 31st August 2005.
He has: 10 posts
Joined: Aug 2005
Thank you for the reply. And I apologize for the quite simple question.
*nods* Now, might you have a tutorial which could shed more light on the use of tables in this fashion? It would appear that there are tables within tables here, then?
Archemedes posted this at 09:07 — 31st August 2005.
He has: 10 posts
Joined: Aug 2005
Alright, obviously my problems come from a lack of full knowledge regarding tables.
I'm now doing my research on tables, and how to correctly control them. Bounced, thank you for answering my very simple question. I will let you know the result of my design!
Regards,
Archemedes
02bunced posted this at 12:03 — 31st August 2005.
He has: 412 posts
Joined: May 2005
I look forward to that and wish you all the best.
Blessings,
David
chrishirst posted this at 16:50 — 31st August 2005.
He has: 379 posts
Joined: Apr 2005
Server Side Includes are the best answer to the problem.
02bunced posted this at 17:13 — 31st August 2005.
He has: 412 posts
Joined: May 2005
or PHP includes if you're posher/your server allows it/you can't be bothered to name all you files .shtml!
chrishirst posted this at 17:22 — 31st August 2005.
He has: 379 posts
Joined: Apr 2005
depending on your server technology and access level you can make any page extension you want handle server side includes, no renaming rrequired at all.
Chris
Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples
02bunced posted this at 17:52 — 31st August 2005.
He has: 412 posts
Joined: May 2005
I must just be on deprived servers!
timjpriebe posted this at 18:27 — 31st August 2005.
He has: 2,667 posts
Joined: Dec 2004
There's actually multiple ways to achieve this sort of result. The first, arguably simplest, but it's definitely been out there the longest, is to use tables as 02bunced is talking about. A quick glimpse at the code behind angeldragon.com reveals that they are, indeed, using tables.
The second method, which seperates the location of the menu out from the actual HTML, is to use an external CSS file. I've done that on the following site: http://www.havencomic.com/
If you look at the source code, there's nothing to indicate where the menu will actually appear. Will it be on the left, on the right, or somewhere else alltogether?
If you have a browser like FireFox (or, I believe, Opera), you can actually view the CSS file.
There are those that would argue that the second (CSS) method is the "right" way to do this. It certainly can be cleaner from a coding aspect and definitely allows for more future versatility. However, if you're looking for something quick that you can get out the door ASAP, I would say that tables are the way to go.
Here's the official documentation from the Web Standards group on tables:
http://www.w3.org/TR/REC-html40/struct/tables.html
And here's a page on creating menus with CSS:
http://www.webcredible.co.uk/user-friendly-resources/css/css-navigation-menu.shtml
I only glanced at both of those pages, but they look like they can probably help you.
Tim
http://www.tandswebdesign.com
timjpriebe posted this at 18:28 — 31st August 2005.
He has: 2,667 posts
Joined: Dec 2004
Oh, and I would argue that although Server Side Includes can be helpful in seperating the content of the menu out from each file (and you'll only have to change your menu's content on one page), that does not seem to be the answer to the question you asked.
Tim
http://www.tandswebdesign.com
02bunced posted this at 18:32 — 31st August 2005.
He has: 412 posts
Joined: May 2005
I too prefer CSS to tables and use them in all my work. I am just aware they are harder for a beginner to pick up than tables!
Archemedes posted this at 22:00 — 31st August 2005.
He has: 10 posts
Joined: Aug 2005
Hello again everyone,
Thank you for your advice, as well as your direction to tutorials. It's much appreciated.
Alright, this is what I've come up with so far. Criticism is welcome, as long as it's constructive.
Address: http://www.smokestencils.com/
As it still requires quite a bit of development I didn't quite yet want to post it up for review.
I would like to get rid of the space to the left of the menu, and am still looking as to how to do that. I also was running into an issue whereby naming the width of the or which contains the main content (the text) would result in the menu's table to push all of the text far to the right. I would like to have the content less spread out and grouped together better.
Regards,
Archemedes
PS. The menus are all dead links, save for the forums. The forums are home to a small MMORPG guild. Never you mind them.
02bunced posted this at 06:45 — 1st September 2005.
He has: 412 posts
Joined: May 2005
It's very black - not a problem (in fact, very nice), but you might consider having a block of white under the text for easy to read. Secondly your rollovers take a long time to load initially. Looks good though!
Blessings
David
redwilly posted this at 06:50 — 1st September 2005.
He has: 47 posts
Joined: Jul 2005
well your first 2 tables have padding and spacing of 2, change those values to 0.
redwilly posted this at 06:52 — 1st September 2005.
He has: 47 posts
Joined: Jul 2005
by the way Archemedes, you are starting a web design company? would you like to partner? i can garantee that i know more html than you, lol, i could help you a lot...
.:OaB:. Counter-Strike Clan
Ace Web Design
timjpriebe posted this at 15:38 — 1st September 2005.
He has: 2,667 posts
Joined: Dec 2004
Looks like you've got the side-menu thing down! Of course, as you continue to mess with HTML and the like, you'll continue to learn more and more things about them. But congrats on what you've done so far!
Tim
http://www.tandswebdesign.com
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.