views:

100

answers:

2

Hi all,

I have some basic hyperlinks (they're tags dynamically generated by Wordpress).

Here's the code that generates them:

<p><?php the_tags('Tags: ', ', ', '<br />'); ?></p>

Everything works in all modern browsers (including IE8). However, in IE7, it looks the same, the link is THERE, with all of the properties EXCEPT the hyperlink functionality...

Any idea why?

A: 

I tried the code in WordPress 3.0.1 and found no problem. You may want to install IE Developer Toolbar and check the tags.

boxoft
+2  A: 

Okay, so I fixed the bug, but I'd still like someone who could possibly explain why this fixed made it work.

What I did was the following.

I wrapped the generated anchor links within a div with class 'tags' Then, in a specific IE7 CSS stylesheet, I gave those links the following styles:

.tags a { zoom: 1; }

Does anyone have any clue why that solved the problem? What exactly did that do?

Thanks! Amit

Amit
Welcome to the wonderful world of the IE html rendering engine: http://reference.sitepoint.com/css/haslayout
Jhong
Haha, yeah. Gotta love IE :/
Amit