Solved

Problem with CSS menu & unwanted dashed box around selected links in FF

Posted on 2010-09-07
10
565 Views
Last Modified: 2013-12-25
Hi...  The menu (see code) works for whichever link is clicked for just the first time.  It dies not work for any subsequent link clicked; i.e., the second link is unresponsive "dead'.  What am I missing here?

The menu is a pure css horizontal menu and it can be seen in action (or non action) at www.renaissanceseniorinvestments.com.  

An unrelated question; how can I get id of the dashed boxes around selected links in FF?

HTML:

<div id="navigation">
                        <ul id="navlist">
                              <li><a href="contact.htm">Contact</a></li>
                              <li><a href="rsc.htm">RSC</a></li>
                              <li><a href="partners.htm">Partners</a></li>
                              <li><a href="success-stories.htm">Success Stories</a></li>
                              <li><a href="5-key-points.htm">5-Key Points</a></li>
                              <li><a href="index.htm">Home</a></li>
                        </ul>
                  </div>

CSS:


#navigation {
      display: block;
      position: absolute;
      z-index: 50;
      top: 195px;
      left: 0px;
      width: 880px;
      height: 30px;
      color: #FFFFFF;
      background-color: #5F6565;
}

#navigation ul {
      list-style: none;            
      padding-right: 95px;
      margin-left: 0;
      float: right;
      width: 100%;
}

#navigation ul li {
      display: inline;
}

#navigation ul li a {
      padding-right: 40px;
      text-decoration: none;
      color: #FFFFFF;
      float: right;
}

#navigation ul li a:hover {
      color: #C2C2C2;
      text-decoration: none;
}
0
Comment
Question by:dlearman1
  • 3
  • 3
  • 3
  • +1
10 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 33615560
outline:none;
0
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33615568
Are you trying to select the same option again while it is selected already?
It works for me if you select the different link from what is already selected.

 
0
 

Author Comment

by:dlearman1
ID: 33615634
QPR:  Thanks for the tip it worked perfectly.

 I see that I didn't give the entire link.  It should be  www.renaissanceseniorinvestments.com/beta.  Sorry about that and no I'm not trying the same link again.  Thanks for your help on this.
0
 
LVL 29

Expert Comment

by:QPR
ID: 33615948
glad to hear we got it solved. I didn't follow any links I just knew this was the answer from previous exp
0
 

Author Comment

by:dlearman1
ID: 33615987
That solved the "dashed box" issue.  I still need help with the navigation problem.  THANKS
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 29

Expert Comment

by:QPR
ID: 33616072
Oh I forgot the 1st Q and dived into the 2nd :)
Does the link work if u click it a second time?
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 33616181
strange thing

<div id="navigation">
                        <ul id="navlist">
                              <li><a href="contact.htm">Contact</a></li>
                              <li><a href="rsc.htm">RSC</a></li>
                              <li><a href="partners.htm">Partners</a></li>
                              <li><a href="success-stories.htm">Success Stories</a></li>
                              <li><a href="5-key-points.htm">5-Key Points</a></li>
                              <li><a href="index.htm">Home</a></li>
                        </ul>
                  </div>

becomes

                  <div id="navigation">
                        <ul id="navlist">
                              <li id="active"><a href="#" id="current">Contact</a></li>
                              <li><a href="#">RSC</a></li>
                              <li><a href="#">Partners</a></li>
                              <li><a href="#">Success-Stories</a></li>
                              <li><a href="#">5-Key-Points</a></li>
                              <li><a href="#">Home</a></li>
                        </ul>
                  </div>

after clicking one of the links
Doesn't the page contact.htm (for example) reside somewhere else ?
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 33616183
Or there is some js regenerating the links.
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 33616194
try to change the path to /beta

<div id="navigation">
                        <ul id="navlist">
                              <li><a href="beta/contact.htm">Contact</a></li>
                              <li><a href="beta/rsc.htm">RSC</a></li>
                              <li><a href="beta/partners.htm">Partners</a></li>
                              <li><a href="beta/success-stories.htm">Success Stories</a></li>
                              <li><a href="beta/5-key-points.htm">5-Key Points</a></li>
                              <li><a href="beta/index.htm">Home</a></li>
                        </ul>
                  </div>
0
 

Author Closing Comment

by:dlearman1
ID: 33728311
@ part question, only one part answered.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now