473,609 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE: a:hover bullet visibility

In a navigation panel I try to place a bullet before each entry when
the link is hovered at (see http://www.shambhala.de). Mozilla does it
like expected, but IE doesn't - any ideas?

[HTML-Snippet]

<a href="http://www.shambhala.d e/reisen/kailash.php"
title="[title]"><span class="bullet"> <img
src="http://www.shambhala.d e/media/grafik/arrow_small.gif " width="9"
height="9"/>&nbsp;</span>Tibet</a><br/>

[CSS]

a:link .bullet, a:visited .bullet {
visibility: hidden;
}
a:hover .bullet, a:active .bullet {
visibility: visible;
}
for the complete stylesheet see: http://www.shambhala.d e/style.css
Jul 20 '05 #1
3 7577
Peter Schlenker wrote:
In a navigation panel I try to place a bullet before each entry when
the link is hovered at (see http://www.shambhala.de).
Don't forget the KISS principle.
<a href="http://www.shambhala.d e/reisen/kailash.php"
title="[title]"><span class="bullet"> <img
src="http://www.shambhala.d e/media/grafik/arrow_small.gif " width="9"
height="9"/>&nbsp;</span>Tibet</a><br/>


Are they list items? If so, then mark them up as a list.

Then, the css is fairly easy.

li a:link {list-style-type: none}
li a:hover {list-style-type: disc}

You can use an image for the marker, too, but why complicate things?

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
*Brian* <us*****@juliet remblay.com.inv alid-remove-this-part>:
<a href="http://www.shambhala.d e/reisen/kailash.php"
title="[title]"><span class="bullet"> <img
src="http://www.shambhala.d e/media/grafik/arrow_small.gif "
width="9" height="9"/>&nbsp;</span>Tibet</a><br/>

<li><a href="/reisen/kailash" title="[title]"><img class="bullet"
src="/media/grafik/arrow_small.gif " width="9" height="9"
alt="&gt;">Tibe t</a></li>

li {list-style: none; text-align: right}
a img.bullet {visibility: hidden; padding-right: 0.3em}
a:hover img.bullet {visibility: visible}

That should work even in IE. If not, I don't know why.
li a:link {list-style-type: none}
li a:hover {list-style-type: disc}


That's assigning a 'list-style-type' to a box (the one the 'a' element
generates), that isn't a 'list-item' by default and shouldn't be here
neither. The value also isn't inherited to the 'li', which usually does have
"display: list-item". That means your code should and will not work as you
intended. A list is a better approach than using <br>s, though.

li {list-style: none}
li:hover {list-style: url('/media/grafik/arrow_small.gif ') disc}

will do as intended in some browsers, but not in IE.

a:before:hover {content: "> "; content:
url('/media/grafik/arrow_small.gif ')}

will work in even fewer browsers.

P.S.: Instead of '>' you can try using a more appropriate Unicode character,
e.g. U+25B6.

--
"When a thing has been said and well, have no scruple. Take it and copy it."
Anatole France
Jul 20 '05 #3
Christoph Paeper wrote:
*Brian* <us*****@juliet remblay.com.inv alid-remove-this-part>:
li a:link {list-style-type: none}
li a:hover {list-style-type: disc}
That's assigning a 'list-style-type' to a box (the one the 'a' element
generates), that isn't a 'list-item' by default and shouldn't be here
neither. The value also isn't inherited to the 'li', which usually does have
"display: list-item". That means your code should and will not work as you
intended.


Ugh. I was having a miserable night. 3 brain-dead responses.
Apologies again.
A list is a better approach than using <br>s, though.


Well, hooray for me. :-/

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4

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

Similar topics

12
5010
by: Sander Tekelenburg | last post by:
Trying to make some images disappear on hover (works), and others appear on hover (works not). In tested browsers, this gives the expected result: IMG.disappear {visibility: visible} IMG.disappear:hover {visibility: hidden} this does not: IMG.appear {visibility: hidden} IMG.appear:hover {visibility: visible}
1
5418
by: Jon W | last post by:
This is a small table with hover on the table cells. The first cell is setup to switch from div element to input element by use of display:block/none. In IE, onclick the input element is displayed correctly but it disappears if another hover is triggered. Any thoughts? Thanks,Jonny <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
0
5819
by: Jon W | last post by:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> <html> <head> <title>rolly</title> <!-- The desired performance for this gem would be to: 1. click on table cells 2. edit in INPUT 3. click away, data presented in table cell. 2.0 The table cells have hover highlighting.
0
1351
by: Antoine | last post by:
I havent got room on an aspx forms data items but want to have an alternate option to double click on its link (like a right click context menu) so make the most of functionality with the lack of space, without refering to using some other kind of custom control. Its for a calendar that is data bound with items which are what I want the submenu options on (or even just a different action on right click). I have divs on the form. This...
1
1868
by: Vani Kulkarni | last post by:
Hello, I have a menu in my web page, hovering on which it displays the contents. Its been constructed using <uland <litags. The problem is that the menu appears on page load which i dont it to happen. I want the menu to be appeared only if I hover the mouse on it. Here is the code i have written :
8
6543
by: Haines Brown | last post by:
I want a hot text string to display an image only when hovered. In the body: .... <a id="link-a" href="#nogo"> <img id="photo" src="..." />hot text </a> ....
4
2256
by: Sigilaea | last post by:
My previous post got squashed because m post is too long. Sorry for that: I have an AJAX page with a CSS menu at the top. My problem is the hover functionality stops working after someone clicks on one of the details in the main blue section. This only occurs in IE6. IE7 and FF work correctly. The URL to the page is: http://www.coralap.com/dies281css.aspx Steps to reproduce: 1. Mouse over the top menu and verify the hover works. 2....
3
2854
by: chrisp | last post by:
In my ASP.NET web app I'm trying to create a popup DIV that displays some text when the user hovers the mouse over a link in a particular cell in a table. I'm using JavaScript to show & hide the popup. I've played around but can't get the popup to work properly. Toggling between 'visibility:hidden' & 'visibility:visible' doesn't work correctly because the row height is incorrect and includes the height of the popup text. Toggling between...
1
3796
omerbutt
by: omerbutt | last post by:
hi every one i have a menu li and ul based the problem is when any specific category in the li is hovered the li or the sub-cat items appear but as i move my mouse over the sub-cat or level two li it disappears can any one help in this here is the link you can watch the left menu here link here is the code var menuids= //Enter id(s) of SuckerTree UL menus, separated by commas function buildsubmenus(){ for (var i=0; i<menuids.length;...
0
8130
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, 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...
0
8076
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8541
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 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...
0
8406
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 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...
0
7002
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5510
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2531
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
1
1672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1389
bsmnconsultancy
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...

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.