473,395 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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.de/reisen/kailash.php"
title="[title]"><span class="bullet"><img
src="http://www.shambhala.de/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.de/style.css
Jul 20 '05 #1
3 7559
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.de/reisen/kailash.php"
title="[title]"><span class="bullet"><img
src="http://www.shambhala.de/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*****@julietremblay.com.invalid-remove-this-part>:
<a href="http://www.shambhala.de/reisen/kailash.php"
title="[title]"><span class="bullet"><img
src="http://www.shambhala.de/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;">Tibet</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*****@julietremblay.com.invalid-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
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}...
1
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...
0
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....
0
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...
1
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...
8
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
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...
3
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
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,...
0
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
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,...

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.