Log in

View Full Version : Resolved CSS IE vs FF...Menu Text Renders Different



jswidorski
10-06-2008, 06:14 PM
Chrome Menu
http://www.dynamicdrive.com/dynamicindex1/chrome/index.htm


I implemented the basic CSS code for the Chrome Menu, but the menu drop downs are rendering different in IE 7 vs FF 3. They seem to work correctly in FF but not in IE.

http://templates.meemic.com/menuTest/

Thanks, John



.chromestyle{
width: 1000px;
font-weight: bold;
}

.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

.chromestyle ul{
width: 100%;
background: url(/images/chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
padding: 4px 0;
margin: 0;
text-align: center; /*set value to "left", "center", or "right"*/
}

.chromestyle ul li{
display: inline;
}

/* Text Here */
.chromestyle ul li a{
color: #494949;
padding: 4px 7px;
margin: 0;
text-decoration: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
}

.chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
background: url(/images/chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
}

/* ######### Style for Drop Down Menu ######### */

.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #BBB; /*THEME CHANGE HERE*/
border-bottom-width: 0;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}

.dropmenudiv {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}

.dropmenudiv a{
width: auto;
display: block;
text-indent: 1px;
border-bottom: 1px solid #BBB; /*THEME CHANGE HERE*/
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: black;
}

* html .dropmenudiv a{
width: 100%;
}

.dropmenudiv a:hover{
background-color: #F0F0F0;
}



<div class="chromestyle" id="chromemenu" align="right">
<ul>
<li><a href="/default.asp" rel="menu_1">HOME</a></li>
<li><a href="/reports">AGENCY REPORTS</a></li>
<li><a href="/supplies">SUPPLIES</a></li>
<li><a href="/departments.asp" rel="menu_2">DEPTS</a></li>
<li><a href="/directories" rel="menu_3">DIRECTORIES</a></li>
<li><a href="/sitemap.asp">SITE MAP</a></li>
</ul>
</div>

<div id="menu_1" class="dropmenudiv">
<a href="/news.asp" target="_top">News</a>
<a href="/scheduler">Scheduler</a>
<a href="/directions.asp" target="_top">Directions</a>
</div>

<div id="menu_2" class="dropmenudiv">
<a href="/<%= rsDepartment("Department URL") %>">Dept 1 </a>
<a href="/<%= rsDepartment("Department URL") %>">Dept 2 </a>
<a href="/<%= rsDepartment("Department URL") %>">Dept 3 </a>
</div>

<div id="menu_3" class="dropmenudiv">
<a href="/directories/agentlist.asp" target="_top">Addresses</a>
<a href="/directories/drplist.asp" target="_top">Direct Repair Shops</a>
<a href="/directories/towlist.asp" target="_top">Towing List</a>
</div>



<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script>

jswidorski
10-06-2008, 07:09 PM
Found the problem....

filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/


Removed it and it works fine...

John