Page 1 of 1

[SOLVED] Menu stylesheet problem

Posted: Thu Aug 02, 2007 7:54 am
by Ric
Hi all,

I'm looking for a solution for my CMSMS problem. I've applied a stylesheet and a template. Allmost working fine so far. Just 1 thing: the active menu item does not follow the stylesheet .. or partly .. (Also the submenu items are messed up ...)
Can someone help me with this. The website can be found here: http://www.vernieuwenddenken.net/rik/
The selected menu item must have the same 'layout' and behaviour as the rest.
I think that the stylesheet code is not good enough, but can not find a proper solution.
Normal HTML/CSS works fine, but within the menu-manager it acts different :(

Stylesheet code:

Code: Select all

/**
 **********************************
 * Navigation
 **********************************
 */
#nav
{
  padding-right: 0px;
  margin-right: -6px;
}
 
#nav ul
{
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

#nav ul li,
{
  padding-left: 0;
  margin-left: 0;
  padding-bottom: 10px;
  padding-top: 10px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.5em;
  text-decoration: none;
  font-variant: small-caps;
}

#nav a
{
  padding: 8px 15px 8px 10px;
  text-decoration: none;
  border: none;
  color: #ffffff;
} 

#nav a:hover
{
  border: none;
  padding: 8px 15px 8px 10px;
  background-color: #3a4247;
  text-decoration: none;
  border-top: 1px solid #4f585e;
  border-bottom: 1px solid #4f585e;
  border-left: 1px solid #4f585e;
  color: #ffffff;
}

Re: Menu stylesheet problem

Posted: Thu Aug 02, 2007 8:18 am
by RonnyK
I think you miss the styling for the active element "currentpage" in the source of your page.

Code: Select all

#nav li.currentpage { 
....Whatever styling
}
Did you check the templates that come with the default installation. A lot of logic is already available there and ready for re-use/use.

Ronny

Re: Menu stylesheet problem

Posted: Thu Aug 02, 2007 8:38 am
by Ric
Hi,

Thanx for your reply.
But unfortunately I deleted all default stylesheet/templates .. not that smart  :-[

Could you embed a default stylesheet in this reply so I can test it?
(I guess this is the same problem as with submenu's)

Greetz, Rik

Re: Menu stylesheet problem

Posted: Thu Aug 02, 2007 8:40 am
by RonnyK
A login to Mark's demo-site....

****
If you just need to copy/paste some default install templates/stylesheets go here...

http://www.multiintech.com/CMSMSDemo/admin/login.php

Name: adman
Password: adman

****

Ronny

Re: Menu stylesheet problem

Posted: Thu Aug 02, 2007 9:11 am
by Ric
Thanx ... i copied some stylesheet items .. and now I understand the logic behind it.
For me this problem is solved! I will edit the message subject.

Re: [SOLVED] Menu stylesheet problem

Posted: Thu Aug 02, 2007 6:02 pm
by Dr.CSS
You may want to give some margin at the bottom, at least in Firefox, it's slap tight to the bottom...

Re: [SOLVED] Menu stylesheet problem

Posted: Fri Aug 03, 2007 5:39 am
by Ric
Thanx,

I'll have to make some changes indeed for other browsers.
I'm glad to understand the logic behind the menu structure now  :)

Greetz, Rik