473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Navcontainer and IE6 problem

Hi,

I've built this navigation using CSS Navcontainer (with Pbmod's help) and it works perfect in every browser and platform apart from IE6!

Here is the HTML

[HTML]<div id="navcontainer">
<ul>
<a href="#">Home page</a>
<a href="#">What's new</a>
<a href="#">About us</a>
<div class="submain"><a href="SubMain_who.html" target="_top">Who we work with</a>
<div class="navcontainersub">
<a href="#">Schools</a>
<a href="localauthorities.html" target="_top">Local Authorities</a>
<a href="#">Charities</a>
</div>
</div>
<div class="submain"><a href="SubMain_services.html" target="_top">Our services</a>
<div class="navcontainersub">
<a href="#">Well-Being</a>
<a href="#">EAP</a>
<a href="#">Headspace</a>
<a href="#" class="current">Training &amp; development</a>
</div>
</div>
<a href="#">Contact us</a>
</ul>
</div>[/HTML]

and the CSS

Expand|Select|Wrap|Line Numbers
  1. #navcontainer {
  2.     float: left;
  3.     padding-top: 0px;
  4.     padding-bottom: 5em;
  5.     width: 173px;
  6.     text-align:left;
  7.     }
  8.  
  9. #navcontainer ul {
  10.     margin: 0;
  11.     padding: 0;
  12.     border: 0;
  13.     font: 12px Trebuchet MS, verdana, arial, sans serif;
  14.     letter-spacing: -0.2px;
  15.     text-indent: 24px;
  16.     height: 21px;
  17.     width:171px;
  18.     list-style:none;
  19.     }
  20.  
  21. #navcontainer a {
  22.     background: url(../images/nav_back.gif);
  23.     display: block;
  24.     width: 171px;
  25.     padding-top: 6px;
  26.     height: 20px;
  27.     }
  28.  
  29. #navcontainer a:link, #navcontainer a:visited {
  30.         color:#000000;
  31.         text-decoration: none;
  32.         }
  33.  
  34. #navcontainer a:hover {
  35.     background: url(../images/nav_back_man.gif);
  36.     color:#FFFFFF;
  37.     text-decoration: none;
  38.     padding-top: 6px;
  39.     height: 20px;
  40.     }    
  41.  
  42. #navcontainer .submain:hover a {
  43.     background: url(../images/nav_back_man.gif);
  44.     }
  45.  
  46. #navcontainer .submain .current {
  47.     background: url(../images/nav_back_man.gif);
  48.     color:#FFFFFF;
  49.     }
  50.  
  51. #navcontainer .submain:hover .navcontainersub a{
  52.     background: url(../images/nav_sub_hover.gif);
  53.     color:#666666;
  54.     }
  55.  
  56. #navcontainer .submain .navcontainersub:hover a {
  57.     background: url(../images/nav_sub_hover.gif);
  58.     color:#666666;
  59.     font: 11px Trebuchet MS,verdana, arial, sans serif;
  60.     text-indent: 30px;
  61.     height: 17px;
  62.     }
  63.  
  64.     /* No Hover on Nav*/
  65. #navcontainer .submain .navcontainersub a {
  66.     background: url(../images/nav_sub_hoverw.gif);
  67.     height: 20px;
  68.     color:#666666;
  69.     font: 11px Trebuchet MS,verdana, arial, sans serif;
  70.     text-indent: 30px;
  71.     height:17px;
  72.     }
  73.  
  74. #navcontainer .submain .navcontainersub {
  75.     background: url(../images/nav_sub_hover.gif);
  76.     }
  77.  
  78. /*------ Sub Nav ------*/
  79.  
  80. #navcontainer .submain .navcontainersub .current {
  81.     background: url(../images/nav_sub_hover_c.gif);
  82.     color:#FFFFFF;
  83.     }
  84.  
  85. #navcontainer .submain:hover .navcontainersub .current{
  86.     background: url(../images/nav_sub_hover_c.gif);
  87.     color:#666666;
  88.     }
  89.  
  90.  
  91. .navcontainersub a {
  92.     background: url(../images/nav_sub_hover.gif);
  93.     display: block;
  94.     letter-spacing: -0.3px;
  95.     width: 171px;
  96.     padding-top: 5px;
  97.     height: 18px;
  98.     }
  99.  
  100. .navcontainersub a:link, .navcontainersub a:visited {
  101.     background: url(../images/nav_sub_hoverw.gif);
  102.     color:#666666;
  103.     text-decoration: none;
  104.     }
It basically makes the sub nav hover when you hover over the main section - check the link here in something better than IE6 PC to see what I mean...

LINK
Aug 6 '07 #1
4 2250
drhowarddrfine
7,435 Expert 4TB
IE6 does not work with hover on any element but <a>.
Aug 6 '07 #2
I've found this:

Expand|Select|Wrap|Line Numbers
  1. a:hover {
  2.     color: #f00;
  3.     }
And then inserting any undeclared property within this class. Would this get around the problem or is it unreliable?
Aug 6 '07 #3
drhowarddrfine
7,435 Expert 4TB
That is the only way IE6 understands hover.
Aug 6 '07 #4
pbmods
5,821 Expert 4TB
IE6 does not work with hover on any element but <a>.
Ohhhhhhhhhhhhh good. *sigh*
Aug 6 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
5
by: .... www.FocusOnPanama.com .... | last post by:
I am a bit confused now that I looked at Listamatic, there they define the ID of the enclosing navigation DIV as "navlist" but the CSS defines a class "navcontainer" and yet somehow even though...
6
by: tricky76 | last post by:
I am working on a site that uses CSS navcontainer, but the client would like it so that when you hover over a main section the sub sections highlight for that relevant menu option. I am pretty sure...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.