I'm working on a project where pieces of content will be contained within "tabbed" containers.
In one of the containers, each tab contains a list of links, and for some reason, on all of the tabs, except for the first one, the first link in the list is not clickable in IE 6, and I can't figure out why, though I'm sure it's something super simple.
It's almost as though some invisible element is covering it, preventing the user from clicking on it.
I put together a sample page to illustrate. The code is below.
<html> <head> <title>HTML Template Test Page</title> <link rel="stylesheet" href="./css/newCSS.css" type="text/css"> <style type="text/css"> /************* Begin Testing Declarations *************/
Ok, so I've played around with the CSS and the HTML, still no real solution. I did find that there seemes to be a small (maybe 1px wide) location at the begining of the problematic link that registers as a clickable link.
Also, I've found that if I put anything above the link, even a div with no height, such as:
JohnRiv - I tried removing that property, but still got the same issue.
This one took me forever to figure out. But then I remembered that IE sometimes chokes if there is any whitespace between elements, so I moved all the LI elements to the same line and viola! problem solved.
I just ran into this exact same problem. I tried stripping whitespace, but that didn't work. I then tried setting position: relative on all the hrefs and that solved the problem.
I noticed that in some cases IE seems to expect static positioning. It looks like that's the case with this example, too, when you set the uls to be static rather than relative.