473,513 Members | 2,654 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rollover menu with icons: problems on IE

Hi everybody,
the attached portion of code generates a classic rollover menu through
CSS.
The menu works normally.
I'd like to display a small 8x8 pixels icon nearby some menu items,
basically those referring to
external links. On Firefox and Konqueror everything works perfectly.
On IE (6, at the least) however, the menu options with the icon are
displayed with a "wrong"
height. I can't explain it better than this, just try the following
code by including a 8x8 icon
as menu_extlink.gif.
If I remove the icon (display:none), the height is correct again.
Any hints?
Thanks in advance

Claudio

================================================== ========================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<style type="text/css">
body {
margin:0; padding:0; width:100%;
font-family:Arial,Helvetica,sans-serif;
}

a { background-color:transparent; color:#B00;
text-decoration:underline; }
a img { border:none; }

#latosx {
vertical-align:top; margin:0; width:20%;
font:normal .75em Arial,Helvetica,sans-serif;
background-color:#EDF1FA; color:#000;
position:absolute; left:0; top:0;
}

#latosx ul { list-style:none; margin:0; padding:0; }
#latosx li { border-bottom:1px solid #CCC; margin:0; }

#latosx ul { background-color:#EDF1FA; color:#000; }
#latosx li { line-height:1.75em; padding:0; }

li.menusx-l1-cur { color:#447; background-color:#fff; font-weight:bold;
}
li.menusx-l1-no { color:#fff; background-color:#447; font-weight:bold;
}
span.menusx-l1-cur, span.menusx-l1-no { display:block; margin:0em 2%; }

li.menusx-l2-no { width:100%; background-color:#EDF1FA; color:#000;
display:block; }
li.menusx-l2-no a {
display:block; padding:0em 2%; text-decoration:none;
font-weight:normal;

width: 96% !important;
width /**/: 100%;
}
li.menusx-l2-no a:visited { background-color:#EDF1FA; color:#600; }
li.menusx-l2-no a:hover, li.menusx-l2-no a:active {
background-color:#FF6; color:#000; text-decoration:none; }
li.menusx-l2-no a img {
/*display:none;*/ margin-left:.5em;
}
</style>

</head>

<body>

<div id="latosx">
<ul>
<li class="menusx-l1-cur"><span
class="menusx-l1-cur">Home</span></li>
<li class="menusx-l2-no"><span><a
href="contacts.html">Contacts</a></span></li>
<li class="menusx-l2-no"><span><a
href="phonebook.html">Phonebook</a></span></li>
<li class="menusx-l2-no"><span><a href="http://www.w3c.org">W3C
site<img src="menu_extlink.gif" alt="External URL" width="8" height="8"
/></a></span></li>
<li class="menusx-l2-no"><span><a href="http://validator.w3.org">W3C
validator<img src="menu_extlink.gif" alt="External URL" width="8"
height="8" /></a></span></li>
</ul>
</div>

</body>
</html>

Dec 7 '05 #1
0 1242

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
4914
by: Mr. Clean | last post by:
Can a rolloever menu be done using only CSS, without javascript?
8
2208
by: Mr. Clean | last post by:
I have two images in a rollover: http://www.austinmetrobaseball.com/images/austindivmenu_red.gif and http://www.austinmetrobaseball.com/images/austindivmenu_blue.gif I'd like to be able to do...
12
8484
by: Kyle James Matthews | last post by:
Hello, I have been lurking here for a little bit (truth be told, I lurk on too many newsgroups to be truly effective). I have made a CSS rollover menu, and would like some advice. The menu is...
3
3777
by: Alex | last post by:
I created a page ( http://www.ayida.net/benaglia/chi.html ) based on the example B of the fixed-width layout i found here: http://builder.com.com/5100-6371-5314471-2.html the layout needs this...
5
4163
by: Bribro | last post by:
I have an horizontal menu with a dreamweaver-generated rollover effect. Images are png and their transparency is handled by pngfix.js In IE, applied the pngfix, the rollover doesn't work at all....
6
3177
by: AJBopp | last post by:
I'm wrestling with CSS variations between Firefox and IE. I'm trying to create rollover buttons in a menu frame. It is working perfectly in Firefox but in IE only the first button is properly...
23
2756
by: kigoobe | last post by:
Hi friends, I'm having a menu like this - http://www.kigoobe.com/offshoring/bugs/javascript/treeMenuCheckToggle.gif that I've fetched from the database, using recursive function, where data...
2
10929
by: David Veeneman | last post by:
I'm just getting started with WPF and XAML, and I am trying to create a traditional menu bar. Everything works until I get to the menu icons. I can add a bitmap icon to a menu item using this XAML...
0
7157
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...
0
7535
jinu1996
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...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7521
tracyyun
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...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
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...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
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 ...

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.