Click to See Complete Forum and Search --> : [RESOLVED] anchor href help with IE6


Phill Pafford
01-28-2009, 10:43 AM
Hello all,

Having a strange issue with the anchor tag in IE6.

The problem is my CSS doesn't work when just using the anchor tag without a href

This works if FF and IE7, but not in IE6

<a>Hello</a>


Why do I need the href in IE6 and is there a way not to have this attribute in the anchor tag?

The reason for this is I have a navigation bar from an un-order list tag but I need some of the menus to not be clickable but still show the name.

Also this project is done from reading an XML file with Java and parsing it out with JAXB and then displaying the results in a JSP page. Testing different CSS changes is very cumbersome at times, so any help or insight on this would be great.

Other post for CSS if you need it (http://www.webdeveloper.com/forum/showthread.php?&t=199802&is_resolved=1)

Phill Pafford
01-29-2009, 10:42 AM
I found that you do need the href tag for a anchor tag if you use it in a listed navigation (http://www.cssplay.co.uk/menus/simple_vertical.html).

You can use a page position to get around this as well as change the cursor to a text style so users see the difference visually as well.

Example HTML:

<a href="#NO_HREF" class="cursor_text">IE 6 Listed Menu</a>


CSS:

.cursor_text {
cursor:text;
}