HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old October 17th, 2009, 05:56 AM
Desoza Desoza is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 35 Desoza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 41 m 19 sec
Reputation Power: 4
Sub menus not working in IE6

I have a menu which is working fine in IE7 and FF but create problem in IE6. could some one help on this

Here is the HTML code

Code:
<div class="menu">
          <ul>
            <li><a class="drop" href="">OUR SERVICES</a>
              <ul>
                <li><a class="drop" href="">Speciality Multi-Craft Services</a>
                  <ul style="margin-bottom:-36px; z-index:1;">
                    <li><a href="">Industrial Work Access</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Speciality Coating</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Abrasive Blasting</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Insulation Services</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Refractory Services</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Corrosion Protection</a>
                      <div class="dottedline1"></div>
                    </li>
                    <li><a href="">Fireproofing Services</a></li>
                  </ul>
                </li>
                <li>
                  <div class="dottedline2"></div>
                  <a class="drop" href="" style="border-top:none;">Other Services</a>
                  <ul>
                    <li><a href="">Infrastructure Services</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Commercial Work Access</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Civil Construction</a>
                      <div class="dottedline"></div>
                    </li>
                    <li><a href="">Safety Services</a>
                      <div class="dottedline1"></div>
                    </li>
                    <li><a href="">Special Events Services</a></li>
                  </ul>
                </li>
              </ul>
            </li>
            <li><a href="">ABOUT US</a></li>
            <li><a href="">CAREERS</a></li>
            <li style="margin-right:0px;"><a href="">CONTACT US</a></li>
          </ul>
        </div>


Here is the CSS code

Code:
/* style the outer div to give it width */
.menu {
width:860px;
height:35px;
font-size:0.85em; margin:0 auto; z-index:5; position:absolute;left:50px; margin-top:341px;
}
/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
padding:0;
margin:0;
list-style-type:none;

}
.menu ul ul {
width:150px;
}
/* float the list to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu li {
float:left;
width:168px;
position:relative;
margin-right:57px;
}
/* style the links for the top level */
.menu a, .menu a:visited {
display:block;
font-size:14px;
font-weight:bold;
font-family:Arial, Helvetica, sans-serif;
text-decoration:none; 
color:#5f6062; 
width:168px; 
height:35px; 
background-image:url(../images/tab-bg.jpg); background-repeat:no-repeat;
text-align:center;
line-height:29px;
}
/* a hack so that IE5.5 faulty box model is corrected */
* html .menu a, * html .menu a:visited {

}

/* style the second level background */
.menu ul ul a.drop, .menu ul ul a.drop:visited {
background:#ffffff; width:170px; height:25px;DISPLAY: block; }
/* style the second level hover */
.menu ul ul a.drop:hover {
background:#c9ba65;DISPLAY: block;
}
.menu ul ul :hover > a.drop {
background:#ffffff;DISPLAY: block;
}
/* style the third level background */
.menu ul ul ul a, .menu ul ul ul a:visited {
background:#ffffff;width:150px;height:25px;DISPLAY  : block;}
/* style the third level hover */
.menu ul ul ul a:hover{
background:#b2ab9b;DISPLAY: block;
}
.menu ul ul ul :hover > a {
background:#ffffff;DISPLAY: block;}

/* style the table so that it takes no part in the layout - required for IE to work */
.menu table {border-collapse:collapse; border:0; position:absolute; left:0; bottom:-1px;}

/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu ul ul {
visibility:hidden;
position:absolute;
bottom:35px;
left:0; 
width:150px;DISPLAY: block;
}
* html .menu ul ul {
bottom:30px;
}
/* position the third level flyout menu */
.menu ul ul ul{
left:190px; 
bottom:0;
width:129px;DISPLAY: block;
}
/* position the third level flyout menu for a left flyout */
.menu ul ul ul.left {
left:-150px;
}


/* style the second level links */
.menu ul ul a, .menu ul ul a:visited {
	background:#d4d8bd;
	color:#5f6062; font-weight:normal;
	padding:5px 10px;
	width:129px;
	font-size:11px;
	text-align:left;
	DISPLAY: block;
	font-family:Verdana/* yet another hack for IE5.5 */
}
* html .menu ul ul a{
width:150px;
w\idth:129px;
DISPLAY: block;
}


/* style the top level hover */
.menu a:hover, .menu ul ul a:hover{
color:#b30538;
background-image:url(../images/tab-bg.jpg); background-repeat:no-repeat;DISPLAY: block;
}
.menu :hover > a, .menu ul ul :hover > a {
color:#b30538;
background-image:url(../images/tab-bg.jpg); background-repeat:no-repeat;DISPLAY: block;
}

/* make the second level visible when hover on first level list OR link */
.menu ul li:hover ul,
.menu ul a:hover ul{
 visibility:visible;
height:auto;DISPLAY: block; position:absolute;
}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{
display:none; position:absolute;
}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{
display:block; position:absolute;
}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{ 
display:block;
bottom:0; position:absolute;
}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul { 
display:block;
bottom:0; z-index:4; position:absolute;
}


Kindly help me on this issue as soon as possible

Reply With Quote
  #2  
Old October 17th, 2009, 06:11 AM
dzine's Avatar
dzine dzine is offline
Vergruizer: Vot tebe khuy
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2005
Location: in a life preserver @ seorefugee
Posts: 2,508 dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 21 h 34 m 24 sec
Reputation Power: 145
Why not add a link to your pages urging people to upgrade to IE7+ or move to FF?

Reply With Quote
  #3  
Old October 17th, 2009, 06:32 AM
Desoza Desoza is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 35 Desoza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 41 m 19 sec
Reputation Power: 4
client want it to IE6 as well

Reply With Quote
  #4  
Old October 17th, 2009, 07:53 AM
Desoza Desoza is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 35 Desoza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 41 m 19 sec
Reputation Power: 4
Here is the link
dev(dot)beis(dot)com(slash)beta

Reply With Quote
  #5  
Old October 17th, 2009, 10:27 AM
dzine's Avatar
dzine dzine is offline
Vergruizer: Vot tebe khuy
SEO Chat Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2005
Location: in a life preserver @ seorefugee
Posts: 2,508 dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level)dzine User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 21 h 34 m 24 sec
Reputation Power: 145
The sub-menus ARE working, but they are just placed behind your flash thingie.

Have you tried playing with the z-index values some more? MSIE may expect an element with a z-index to have a set width and/or height as well, mind you....
__________________
Oooh, my 8000th ...Love my host... New quiz --->

Reply With Quote
  #6  
Old October 17th, 2009, 11:08 AM
Desoza Desoza is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Dec 2006
Posts: 35 Desoza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 41 m 19 sec
Reputation Power: 4
no dear I try it seperatley as well without flash but its not working

Reply With Quote
  #7  
Old November 2nd, 2009, 11:01 AM
Alan@wolf21 Alan@wolf21 is offline
Registered User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2009
Posts: 1 Alan@wolf21 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 51 sec
Reputation Power: 0
Need to use Javascript to make work in IE6

sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



This code is all you need to get a css hover to work in IE6.
I hope this helps.

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > Sub menus not working in IE6


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek