Page 1 of 1

section header

Posted: Thu Feb 28, 2008 4:31 pm
by gletofire
Where can I style that part of the section header when the mouse is hovering over the section header?
When I scroll over the section header with the mouse in IE, it changes in something weird and I don't want it to do that.

http://www.ajbmusic.nl/adb/

menu stylesheet:

Code: Select all

/* Vertical menu for the CMS CSS Menu Module */
/* by Alexander Endresen */


/* The wrapper determines the width of the menu elements */
#menuwrapper { 
   width: 100%; 
}


/* Unless you know what you do, do not touch this */ 
#primary-nav, #primary-nav ul { 
   list-style: none; 
   margin: 0px; 
   padding: 0px; 
   width: 100%; 
   margin-left: -1px;
}
#primary-nav ul { 
   position: absolute; 
   top: 0; 
   left: 100%; 
   display: none; 
}
#primary-nav li { 
   margin-bottom: -1px; 
   position: relative; 
}


/* Styling the basic apperance of the menu elements */
#primary-nav a { 
/*border: 1px solid #FFFFFF;*/
   display: block; 
   margin: 0px; 
   padding: 10px 10px; 
   color: #FFFFFF;
   text-decoration: none; 
   background: transparent; 
   min-height:1em; /* Fixes IE7 whitespace bug*/ 
font-family: Bremen Bd BT;
}

#primary-nav li, #primary-nav li.menuparent { 
   background-color: #000000; 
background-image: url(images/knopleeg.jpg); 
   min-height:1em; /* Fixes IE7 bug*/
}


/* Styling the basic apperance of the active page elements (shows what page in the menu is being displayed) */
#primary-nav li.menuactive a{color:#ff0000;}
#primary-nav li.menuactive { 
   background-color: #000000; 
}

/* Styling the basic apperance of the menuparents - here styled the same on hover (fixes IE bug) */
#primary-nav li.menuparent, 
#primary-nav li.menuparent:hover
#primary-nav li.menuparenth { 
   background-image: url(images/knopleeg.jpg); 
}


/* Styling the apperance of menu items on hover */
#primary-nav li:hover, 
#primary-nav li.menuh, 
#primary-nav li.menuparenth, 
#primary-nav li.menuactiveh { 
    background-image: url(images/knopover.jpg);
}


/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */
#primary-nav ul, 
#primary-nav li:hover ul, 
#primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul, 
#primary-nav li.menuparenth ul ul { 
   display: none; 
}
#primary-nav li:hover ul, 
#primary-nav ul li:hover ul, 
#primary-nav ul ul li:hover ul, 
#primary-nav li.menuparenth ul, 
#primary-nav ul li.menuparenth ul, 
#primary-nav ul ul li.menuparenth ul { 
   display: block; 
}


/* IE Hack, will cause the css to not validate */

#primary-nav li, #primary-nav li.menuparenth { _float: left; _height: 1%; }
#primary-nav li a { _height: 1%; }


/* section header */
#primary-nav li.sectionheader {
   border-left: 1px solid #006699;
   border-top: 1px solid #006699; 
   font-size: 130%;
   font-weight: bold;
   padding: 0.5em 0 0.5em 0.5em;
   background-color: #0000FF;
   margin: 0;
   width: 100%;

   background-image: url(images/sectionheader.jpg);
}


/* separator */
#primary-nav li hr.separator {
   display:block;
   height: 2.0em;
   color: #0000FF;
   background-color: #0000FF;
   width: 100%;
   border:0px;
   margin-top: -7px;
   margin-bottom: -6px;
   padding:0px;
   background-image: url(images/separator.jpg);
}
menu template:

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}

	{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}

	{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
	</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
	<li class="menuactive menuparent"><a class="menuactive menuparent" 
{elseif $node->current == true}
	<li class="menuactive"><a class="menuactive" 
{elseif $node->haschildren == true}
	<li class="menuparent"><a class="menuparent" 
{elseif $node->type == 'sectionheader'}
        <li class="sectionheader"><span> {$node->menutext} </span>
{elseif $node->type == 'separator'}
        <li style="list-style-type: none;"> <hr class="separator" />
{else}
	<li><a 
{/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'}
href="{$node->url}" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}{/if}


{/foreach}

	{repeat string="</li></ul>" times=$node->depth-1}		</li>
	</ul>
<div class="clearb"></div>
</div>
{/if}

Re: section header

Posted: Sun Mar 02, 2008 7:35 pm
by Dr.CSS
You could try this...

#primary-nav li.sectionheader {
  font-size: 100%;
  font-weight: bold;
  padding: 0.5em 0 0.5em 0.5em;
  background-color: #0000FF;
  margin: 0;
  width: 100%;
  background-image: none;
}
#primary-nav li.sectionheader:hover {
  font-size: 100%;
  font-weight: bold;
  padding: 0.5em 0 0.5em 0.5em;
  background-color: #0000FF;
  margin: 0;
  width: 100%;
  background-image: none;
}

Re: section header

Posted: Fri Nov 07, 2008 3:15 am
by Darwin Web Design
Hi I'm using CMS Spring Garden and exactly the same problem is happening to me. I don't have a remote link to show but when you hover over the section header in Firefox, its good - its just a heading above some menu items (which I want), but in IE it produces a hover effect and styles/colour change upon hover although doesn't link to anywhere (I don't want it to link).

I'm just wanting to use the section headers as headings to logically group together menu items vertically so there isn't just a mass of 'buttons' going down forever.

I tried the CSS suggestion above but that didn't work. Could anyone provide a solution? Thanks.

I'm just using the css menu vertical, just changed afew colours so far, so code is pretty much original at this stage (won't post it all).

Re: section header

Posted: Tue Nov 11, 2008 8:41 am
by Dr.CSS
A link would help...