Submenus flying around in CSS Design

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kempelen
Beginner
Beginner
Posts: 2
Joined: Tue Mar 14, 2006 9:00 pm

Submenus flying around in CSS Design

Post by kempelen »

Hi Guys,

We created sites with traditional HTML layout, the menu worked fine. But now, we made some CSS based layouts, and some submenus fly off from their normal position. The error occurs only on Internet Explorer, Firefox is fine!

Example: http://hovslagerforeningen.wpsdemo.com

Any ideas would be welcomed! Many thanks!

Ferenc Veres
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

Hi,

I didn't get a chance to take a really close look, but it seems as if you have the menu files placed properly in the <head> section. Others may tell you to move the scripts down and make them the first item in the <body> section.

You have the menu_data file as an ASP file - I'm not sure if that is valid. I'm not certian, though. That may be a question for John, Ruth or Andy to answer.

You only have a partial doctype declared. Try declaring the full Transitional Doctype.

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Without a full Doctype, IE may act buggy.

Since the problem has occured after changing to CSS layout, check your CSS carefully. If you have styled the body, td, or table tags directly (styling the default tags without assigning a class), that will likely have an effect of the menu.

I took a quick look at your CSS sheets and it all looks OK, but you should double-check, I may have missed something.

That should keep you busy until someone else can answer :>)

By the way, I think your site is well written. Nicely laid out DIV's and well written CSS. :>)
kempelen
Beginner
Beginner
Posts: 2
Joined: Tue Mar 14, 2006 9:00 pm

Post by kempelen »

Hi,

vikenk: Thanks for the great idea about the doctype, I think that fixed the problem!

Thanks for the nice words, but there is nothing special about that layout, the net is full of great examples and tutorials. ;-)

Best regards,
Ferenc
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Viken, the _data file can be any type that is needed; e.g., .js, .php, .cfm, .asp, etc. It just depends on what you're doing within the _data file.

More freedom from good ol' Milonic :!: :D
John
vikenk
Mega Advanced
Mega Advanced
Posts: 297
Joined: Tue Nov 29, 2005 7:38 pm

Post by vikenk »

Thanks John. That's good to know...

I don't know anything about PHP or ASP, but it's something I aspire to learn sooner or later (hopefully sooner).
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi Viken

I´m actually starting PHP, its necessary that your providers server supports it.

See

http://www.w3schools.com/php/default.asp


Michael
Post Reply