WebsiteBaker Community Forum

General Community => Off-Topic => Topic started by: Briefcase on September 18, 2008, 12:42:40 PM

Title: ShowMenu2 Childeren page CSS problem
Post by: Briefcase on September 18, 2008, 12:42:40 PM
the CSS properties of the menu is perfectly OK when displaying the normal page, but when a child page is added I'm loosing all of the CSS of the menu, the content of the page is displayed correctly.

Path to the CSS file is correct (must be otherwise it wouldn't show the content CSS) when checking the output.

Any bright ideas?

thanks.
Title: Re: ShowMenu2 Childeren page CSS problem
Post by: Ruud on September 18, 2008, 02:22:00 PM
If you have it online and give us a link to look at, we might be able to help.

Ruud
Title: Re: ShowMenu2 Childeren page CSS problem
Post by: Briefcase on September 18, 2008, 02:32:20 PM
the normal link: http://89.18.178.164/~vanwijnen/ (http://89.18.178.164/~vanwijnen/)
The faulty page: http://89.18.178.164/~vanwijnen/pages/bedrijfsinformatie/openingstijden.php (http://89.18.178.164/~vanwijnen/pages/bedrijfsinformatie/openingstijden.php)

cheers
Title: Re: ShowMenu2 Childeren page CSS problem
Post by: Ruud on September 18, 2008, 02:49:14 PM
The defaul;t styling is done on the a.menu-sibling class

Code: [Select]
a.menu-sibling {
color:#FFFFFF;
display:inline;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:13px;
font-weight:bolder;
text-decoration:none;
}

When you are in a submenu this class doesn't exist.
These settings should be in something like
Code: [Select]
.menuwrapper a {
color:#FFFFFF;
display:inline;
font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:13px;
font-weight:bolder;
text-decoration:none;
}

For the rest your menu is a very deep nested <font> <font> <font> structure.
I don't know what you did with the show_menus call, but it isn't good formed.


Tip. on my (Dutch) site (http://WebsiteBaker.allwww.nl/wb/posts/fouten-in-css-oplossen13.php) there are some tools described on how you can debug your css.
Using FF + FireBug it is very simple to see why your CSS didn't work.

Ruud
Title: Re: ShowMenu2 Childeren page CSS problem
Post by: Briefcase on September 18, 2008, 02:50:53 PM
thanks, I'll dig into it the coming days.