Hey all,
I have integrated UL, Li base dropdown menu but it is bevaing abnormal in IE. Can somebody have a look on my code and help me out to fix the problem. Here is the Link of my website.
*Note: It is working fine in Safari and Firefox Mozilla but creating problem in IE
And here is the HTML code. -
<span class="preload1"></span>
-
<span class="preload2"></span>
-
<ul id="nav">
-
<li class="top"><a href="#nogo1" class="top_link"><span>Home</span></a></li>
-
<li class="top"><a href="#nogo2" id="products" class="top_link"><span class="down">jQuery</span></a>
-
<ul class="sub">
-
<li><a href="#nogo3" class="fly">Time | Date | Color picker</a></li>
-
<li><a href="#nogo7" class="fly">Accordions | Menu | Form</a></li>
-
<li><a href="#nogo19">Flash Guns</a></li>
-
<li><a href="#nogo20">Tripods</a></li>
-
</ul>
-
</li>
-
<li class="top"><a href="#nogo22" id="services" class="top_link"><span class="down">MooTools</span></a>
-
<ul class="sub">
-
<li><a href="#nogo3" class="fly">Time | Date | Color picker</a></li>
-
<li><a href="#nogo7" class="fly">Accordions | Menu | Form</a></li>
-
<li><a href="#nogo19">Flash Guns</a></li>
-
<li><a href="#nogo20">Tripods</a></li>
-
</ul>
-
</li>
-
<li class="top"><a href="#nogo53" id="shop" class="top_link"><span class="down">Others</span></a>
-
<ul class="sub">
-
<li><a href="#nogo3" class="fly">Time | Date | Color picker</a></li>
-
<li class="mid"><a href="#nogo7" class="fly">Accordions | Menu | Form</a></li>
-
<li><a href="#nogo19">Flash Guns</a></li>
-
<li><a href="#nogo20">Tripods</a></li>
-
</ul>
-
</li>
-
</ul>
-
and here is CSS Code -
.preload1 {background: url(../images/img-04.png);}
-
.preload2 {background: url(../images/img-04.png);}
-
#nav {padding:0; margin:0; list-style:none; height:53px; background:url(../images/img-03.png) repeat-x; position:relative; z-index:500; font-family:arial; }
-
#nav li.top {display:block; float:left; height:53px;}
-
#nav li a.top_link {display:block; height:50px; line-height:48px; color:#00FFF6; text-decoration:none; font-size:12px; font-weight:normal; padding:0px; cursor:pointer;}
-
#nav li a.top_link span {float:left; display:block; padding:0 24px 0 24px; height:50px;}
-
#nav li a.top_link span.down {float:left; display:block; padding:0 24px 0 24px; height:50px;}
-
-
#nav li:hover a.top_link { color:#fff; background: url(../images/img-04.png) no-repeat center top;}
-
#nav li:hover a.top_link span {background:url(../images/img-04.png) no-repeat center top;}
-
#nav li:hover a.top_link span.down {background:url(../images/img-04.png) no-repeat center top;}
-
-
/* Default list styling */
-
-
#nav li:hover {position:relative; z-index:200;}
-
-
#nav li:hover ul.sub
-
{left:1px; top:51px; background: #030606; padding:0px; border:0px solid #FF0000; white-space:nowrap; width:150px; height:auto; z-index:300;}
-
#nav li:hover ul.sub li
-
{display:block; height:30px; position:relative; float:left; width:150px; font-weight:normal;}
-
#nav li:hover ul.sub li a
-
{display:block; font-size:12px; height:26px; width:148px; line-height:26px; text-indent:5px; color:#00FFF6; text-decoration:none;border-bottom:1px dashed #026A67;}
-
#nav li ul.sub li a.fly
-
{ background:url(../images/arrow.gif) 140px 6px no-repeat;}
-
#nav li:hover ul.sub li a:hover
-
{color:#fff; border-color:#fff;}
-
#nav li:hover ul.sub li a.fly:hover
-
{background:url(../images/arrow_over.gif) 140px 6px no-repeat; color:#fff;}
-
-
-
#nav li:hover li:hover ul,
-
#nav li:hover li:hover li:hover ul,
-
#nav li:hover li:hover li:hover li:hover ul,
-
#nav li:hover li:hover li:hover li:hover li:hover ul
-
{left:153px; top:-4px; background: #030606; padding:3px; border:0px solid #FF0000; white-space:nowrap; width:150px; z-index:400; height:auto;}
-
-
#nav ul,
-
#nav li:hover ul ul,
-
#nav li:hover li:hover ul ul,
-
#nav li:hover li:hover li:hover ul ul,
-
#nav li:hover li:hover li:hover li:hover ul ul
-
{position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}
-
-
#nav li:hover li:hover a.fly,
-
#nav li:hover li:hover li:hover a.fly,
-
#nav li:hover li:hover li:hover li:hover a.fly,
-
#nav li:hover li:hover li:hover li:hover li:hover a.fly
-
{background:#121313 url(arrow_over.gif) 140px 6px no-repeat; color:#fff; border-color:#fff;}
-
-
#nav li:hover li:hover li a.fly,
-
#nav li:hover li:hover li:hover li a.fly,
-
#nav li:hover li:hover li:hover li:hover li a.fly
-
{background:#030606 url(arrow.gif) 140px 6px no-repeat; color:#00FFF6; border-color:#000;}
-
kind regards,
Mohsin Rafique
2 3753
The comments placed in front of the doctype will put IE into quirks mode. Remove the everything before the doctype.
I have removed the comments before doctype statement but even then it is not working....
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: LG |
last post by:
I have asked before but I did not get all the answer I wanted. Perhaps I
explained too bad.
I have my site in frames, and the dropdown list is in the 'left' frame, and
I have used javascript so that when you click on the selected word in the
dropdown menu, it automatically opens up an URL. I want it to open up in the
right frame. As it now opens in the 'left' frame.
I know you can do it with target in html. But I want it open up the...
|
by: Sander Tekelenburg |
last post by:
I'm toying a bit with a horizontal CSS-dependant dropdown menu. See
<http://santek.no-ip.org/~st/tests/CSS/cssmenus.php>.
Gecko's lack of support of display:inline-block is too bad, but aside
from that both Mozilla 1.7.5 and Opera 8.0 (for Mac, build 1945) for
some reason do not draw the third level's background and borders unless
you hover over them. iCab and Safari do (as can be seen in the
screenshot on that page).
I wonder why....
|
by: Dino Buljubasic |
last post by:
Hi,
I have a toolbar with several buttons on it, one of which is set up to
be as a DropDown button. I also have a context menu with menu items
assigend to it so when I click that button, my context menu shows up.
I have 2 questions:
1) how do I find out which menu item was clicked so I can use my
Select Case statement to perform appropriate actions depending on menu
|
by: Bryan |
last post by:
Is there a way to make a Menu control ignore the styles set by a
stylesheet?
The reason I ask is that I have built an ASP.Net site with content
pages that use a master page which uses a CSS for formatting. The
problem with this is that I have a menu on the master page that I want
to behave differently than the links on the content pages, but the CSS
formatting applies itself to the page links AND the menu links
regardless of what I try....
|
by: goresus |
last post by:
Hello there,
I am trying to create two dropdown menus in one of my forms so that they behave in the following way:
the first menu consists of "categories" of items, which I hard coded into the form. i am looking to relate the second menu with the first one such that, as soon as you choose an option from the first menu, the second menu lists only the name of those items that falls in the "category" chosen in the first menu.
I have a...
| |
by: torquehero |
last post by:
Hi all :)
I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown list/menu appears. When the page is opened in the browser (as it appears by default), the dropdown menu positions are correctly displayed. But when I scroll the page and then move the mouse over any menu item of the navbar, the dropdown menu is not...
|
by: William Youngman |
last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a given column. We are also using another dropdown menu that the user can use to select data using another quesry using the SelectedIndex change method. Upon initial page load everything works fine and the user is presented with a SharePoint type menu....
|
by: temp304 |
last post by:
Customize Dropdown Menu is designed to display some choices, as: languages, countries, themes,... but it's differrent from original version in browsers. This tool combine CSS and JavaScript to create a dropdown you can add image to tilte, every choice.
Version 2: check if JavaScript is disabled, then add normal dropdown menu
Let's try dropdown below and feel differences. Tested: IE 7, Opera 9, Firefox 2, Netscape 8.
Demo:...
|
by: redgoals |
last post by:
Hi,
I have searched the forum for a similar problem but have been unable to find anything.
What i am trying to achieve is a dropdown menu which behaves in the following way:
1, Someone selects an category from the first dropdown menu
2, if the category has subcategories then dynamically create a new dropdown underneath and in the process fill it with the subcategories from the chosen option in the first menu.
3, keep doing the above...
|
by: Jim |
last post by:
Hi,
I have two questions/problems pertaining to CSS horizontal dropdown
menus and am hoping that someone here can help me out.
(1)
I'm having a problem centering the menu. I picked up the code for
this from a tutorial but that menu was flush-left justified. Not what
I want. Subsequent searches on google on how to center yielded a
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |