Weird line in the horizonal CSSMenu - any ideas?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Jack @ PharSide

Weird line in the horizonal CSSMenu - any ideas?

Post by Jack @ PharSide »

Hi all,

I have a weird problem and I have been pulling my hair out trying to fix it. Here is the deal. I removed all borders around the navigation except for the bottom. This is simple and works correctly. The only problem is there is a transparent background line about 1 pixel high and I can figure out how to get rid of it. Stylesheet has no such line - I don't think??

Here is a screenshot:

Image

Here is the site:
http://www.pharside.com/web/

Here is the CSSMenu Vert style:
/* Vertical menu for the CMS CSS Menu Module */
/* by Alexander Endresen */


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


/* 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: 0px;
}
#primary-nav ul {
   position: absolute;
   top: 0;
   left: 100%;
   display: none;
}
#primary-nav li {
   margin-bottom: 0px;
   position: relative;
}


/* Styling the basic apperance of the menu elements */
#primary-nav a {
   border-bottom: 1px solid #ffffff;
   display: block;
   margin: 0px;
   padding: 5px 10px;
   color: #000000;
   font-weight: bold;
   text-decoration: none;
   background: transparent;
   text-align: right;
   min-height:1em; /* Fixes IE7 whitespace bug*/
}
#primary-nav li, #primary-nav li.menuparent {
   background-color: #f2890e;
   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 {
   background-color: #ffffff;
}

/* 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/cms/arrow.gif);
   background-position: center right;
   background-repeat: no-repeat;
}


/* 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-color: #ffffff;
}


/* 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: 1.5em 0 0.8em 0.5em;
   background-color: #fff;
   margin: 0;
   width: 100%;
}


/* separator */
#primary-nav li hr.separator {
   display:block;
   height: 0.5em;
   color: #abb0b6;
   background-color: #abb0b6;
   width: 100%;
   border:0;
   margin:0;
   padding:0;   
   border-top: 1px solid #006699;
   border-right: 1px solid #006699;
}
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

Re: Weird line in the horizonal CSSMenu - any ideas?

Post by lollipop27 »

say to #separator at the bottom: display: none;
User avatar
lollipop27
Forum Members
Forum Members
Posts: 237
Joined: Wed Sep 12, 2007 4:09 pm

Re: Weird line in the horizonal CSSMenu - any ideas?

Post by lollipop27 »

oops, no, i think actually its this

Code: Select all

#primary-nav a {
   border-bottom: 1px solid #ffffff; 
Jack @ PharSide

Re: Weird line in the horizonal CSSMenu - any ideas?

Post by Jack @ PharSide »

Thanks Lollipop - I need that 1 pixel line to seperate the buttons. It doesn't justify a transparent 1 pixel line anyhow. Any other ideas though?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Weird line in the horizonal CSSMenu - any ideas?

Post by Dr.CSS »

If you mean you are using it to 'pad' the menu, 'separate the buttons', remove it and add 1px padding to the bottom of primary-nav a...

Or give it the same color as the primary-nav a...
Jack @ PharSide

Re: Weird line in the horizonal CSSMenu - any ideas?

Post by Jack @ PharSide »

I wasn't trying to get any padding. Just a one pixel line to seperate the links and to match the rest of the site but right next to that line - it now looks like there is an additional 2 pixel (transparent) line now. You can really see it when you mouseover the links.

I am still not sure why the bottom-border of the primary nav would cause any problems. Is there anything I am not seeing here?

Again - here is the site:
http://www.pharside.com/web/

Thanks all! I would love to figure this out.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Weird line in the horizonal CSSMenu - any ideas?

Post by Dr.CSS »

I'm not sure at this point what you are looking for?...
Locked

Return to “Layout and Design (CSS & HTML)”