Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-15-2007, 05:12 PM   PM User | #1
TsNMouse
New to the CF scene

 
Join Date: Jul 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
TsNMouse is an unknown quantity at this point
Menu's and content - Advice needed

Hey people,

Soooo I'm continuing my small strides into the world of HTML and CSS creation and i've hit a problem, not site ending but an annoyance.

The issue;

http://www.wakelin.eu/events.html

This weblink (and please ignore the colour scheme its just so I don't see white on white :]), has a second menu nestled below the main navigation.
The only issue is, as I add more events to the page This menu will need updating ...

I would like the "eventsnav" (for those who opened the source) menu to appear in all pages I make about events to allow easy navigation... but If i add another event I would have to open up all previous events pages and copy the new menu code in ... so it has all the links ...

Is there an easier way to do what I need ?

Noob in distress

Mouse.

P.S and I know the Website lacks ... well everything :P

Last edited by TsNMouse; 07-15-2007 at 05:14 PM..
TsNMouse is offline   Reply With Quote
Old 07-16-2007, 09:12 AM   PM User | #2
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
Server side

The easiest would be to take care of this server side, either by employing Server Side Includes (SSI; only on Apache) or using the include mechanism found in most server side scripting languages.

Can you tell if your hosting provider supports a server side scripting language, for instance PHP which is rather popular nowadays?
__________________
Regards,
Ronald.
ronaldvanderwijden.com
ronaldb66 is offline   Reply With Quote
Old 07-16-2007, 09:34 AM   PM User | #3
ahallicks
Senior Coder

 
ahallicks's Avatar
 
Join Date: May 2006
Location: Lancaster, UK
Posts: 1,134
Thanks: 1
Thanked 57 Times in 55 Posts
ahallicks is on a distinguished road
Taking a look at your code you have a way to go in terms of semantics and 'proper' coding, so although you did not ask I'll give you a few tips anyways

Firstly, remove the comments before the doctype. This will cause IE to render in 'quirks mode' giving you all sorts of problems when you try to build a cross-browser compatible site. You're using HTML 4.01 Strict, which is good, but that also means you do not need /> to close those meta tags in your head section.

Next up... your navigation. Because you are listing the links to the other pages of your site, you should really be using a list (i.e. <ul> with <li>'s for all of the links). This is what we consider 'semantic' code, or a paragraph should be in a <p> tag, a list in a <ul>, a heading using the <h#> tags etc. etc. I can also see that you have 4 classes, as well as an id for this list... and for some reason you have put the whole thing in a, <h3> tag even though it is not a heading, and then put each link in it's own <p> even though they are not paragraphs! You could simply this to ONE <ul> with an id, and a bunch of <li>'s for your links with a class to style them.

If you validate your page you'll see some errors that need correct, which I have actually sorted above. But also, I can't see a closing </html>, which doesn't seem to affect the page, but I'd put it in if I were you.
__________________
"write it for FireFox then hack it for IE."
Quote:
Originally Posted by Mhtml View Post
Domains are like women - all the good ones are taken unless you want one from some foreign country.
Reputation is your friend

Development & SEO Tools
ahallicks is offline   Reply With Quote
Old 07-16-2007, 11:35 PM   PM User | #4
TsNMouse
New to the CF scene

 
Join Date: Jul 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
TsNMouse is an unknown quantity at this point
Okay, I've solved the problems listed by Ahallicks, and the site now seems to pass validation ... I miracle onto itself
(Will upload the updated page once i screw with the new content i want to add, for now changes are <p>#s to UL and listed contents, nothing big)

To answer ronaldb66 : Server support seems to be all php and mysql related gubbins, since the blog script now works!

So i'm ready to try and understand any advice or links you might have.

Cheers!

Mouse
TsNMouse is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:17 AM.


Advertisement
Log in to turn off these ads.