471,599 Members | 920 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Clickable <DIV> doesn't work in IE

I made a box where if you hover over the DIV tag it changes the color of the link text. It works in firefox and opera, but it doesn't work in IE. Doesn't anyone know why it doesn't work and how to fix it?

I made a <DIV> clickable by extending the <a> tag
Expand|Select|Wrap|Line Numbers
  1. div.top_nav a { 
  2. width: 100%; 
  3. height: 100%; 
  4. display: block; 
  5. }
Then in the body of my HTML, I used:
Expand|Select|Wrap|Line Numbers
  1. <div class="top_nav">
  2.      <a href="a">1. Home</a>
  3. </div>
Oct 15 '07 #1
1 3393
7,435 Expert 4TB
That markup isn't going to do that in any browser. You must have posted the wrong thing.
Oct 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Paul Thompson | last post: by
4 posts views Thread by He Shiming | last post: by
8 posts views Thread by localhost | last post: by
28 posts views Thread by Kent Feiler | last post: by
2 posts views Thread by Richard Maher | last post: by
2 posts views Thread by lir | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

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.