[SOLVED] Menu stylesheet problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Ric

[SOLVED] Menu stylesheet problem

Post 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;
}
Last edited by Ric on Thu Aug 02, 2007 9:13 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Menu stylesheet problem

Post 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
Ric

Re: Menu stylesheet problem

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Menu stylesheet problem

Post 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
Ric

Re: Menu stylesheet problem

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [SOLVED] Menu stylesheet problem

Post by Dr.CSS »

You may want to give some margin at the bottom, at least in Firefox, it's slap tight to the bottom...
Ric

Re: [SOLVED] Menu stylesheet problem

Post 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
Locked

Return to “CMSMS Core”