I can’t see any reason for them not working, from the snippet you’ve given us. Can you give us a link to an actual live page, so we can see if there’s anything else that could be interfering?
I think there must be something else in your code that you haven’t posted that is causing the problem. I copied and pasted your posted html and css into a html file and the links work ok in my IE8 - the cursor changes to a hand when I hover over the links.
Get rid of the adjacent hyphens strings — within the HTML comments it is NOT a sensible idea. If you have to have use decoration with HTML comments then choose <!– == –> so not to screw the browsers up as the amount of hyphens will trigger on/off states.
They are acting like links from the example you gave us. However, without the rest of the page and images or noting the browser you are having the issue with. It’s too hard to replicate your problem. I would suspect it is an overlapped item though in the full page.
Edit: I see you have now given a page that is displaying the issues. I might come back later if I have time and look further at the problem.
The page has been done only so far. The rest has not been done yet.
The comments were for the client who will to understand the code and change accordingly.
At the moment your #top_menu is overlapping the hyperlinks and most of the cart you can see if you give it a background colour; it stretches the full page width.
Perhaps if you give the: #cart a z-index of something like 2 it will appear in front of the #top_menu allowing you to fully access the hyperlinks.
<mythbusters>Well there’s your problem…</mythbusters>
Taking a closer look at your ‘test site’ there are a LOT of problems with the code – that you are using dreamweaver is probably a contributing factor to those problems; as Dan used to say the only thing about Dreamweaver than can be considered professional grade tools are the people promoting it’s use.
From the top of the markup…
<broken record>Is this a NEW page? If so why is it pre-op? Transitional is for supporting old/outdated coding techniques, NOT for building new websites!</broken record>
No media types on your CSS LINK tags
You do NOT have complex enough a layout to be needing IE conditional nonsense, and that you are targeting MULTIPLE versions just further compounds the difficulty in maintaining such a page…
Your comment placement runs the risk of tripping rendering bugs in both IE and FF.
Ease up on the DIV – you’ve got about a dozen classed DIV for NOTHING in there. Likewise you are saying the tagline is the parent heading for all content on the page? That seems a little off…
You have NOTHING on the page that should be warranting the use of alpha .png, so get rid of that bloat.
you fail to close HEAD
Moving on to the CSS
That is a ridiculous reset – if it starts messing with anything more than padding/margins and border on two elements, it’s probably too big to bother with.
85% of 85% font? No wonder the sizing is so wierd.
generated content for WHAT? Some crappy broken float clearing method? One step removed from that clearfix nonsense…
presentational classes of .left and .right have no real place if practicing separation of presentation from content. Say what things ARE not how they appear. AT that point you might as well go back to using HTML 3.2
font-size changes without re-declaring line-height is the fast track to broken layouts cross browser…
I could go on for a while, so I’ll stop here. In any case as I often say CSS is only as good as the markup it is applied to – and the markup you have is problematic.
The code should probably look a little more like this:
Which would/should provide all the hooks needed for what you have for a layout so far. I have time later I’ll toss together some example CSS for that. (No promises on that today, I’ve got a full plate of work ahead of me)
You should REALLY consider kicking Dreamweaver to the curb.
@Stevie D: Ic. Thanx. I’ll try notepad from now on.
@deathshadows60: thanx for all the trouble of writing the code. Im trying to correct my code according to your points.
I have put in a horizontal drop downmenu for the left side categories. I have not used used javascript for it except for a little script in the html. (you can ignore the javascript files in js folder. I’ll delete them later)
The sub menu appears to be working fine in other browsers. but in ie, once i hover my mouse over the link, the sub menu is displayed, and it stays displayed. it does not disappear when i move the mouse away from the link.
Could you please tell me how I can correct whatever problem it is?