Wrapping block level elelments (DIV) with a link (A) is introduced only in HTML5, previously it was not possible/working… so I guess you are using a browser that does not "know" HTML5
Previously, I was solving this by using SPAN elements instead of DIV and then in the CSS for those SPANs would set "display:block" so they would simulate a DIV element. This way you would have a link (A) wrapping in-line elements (SPAN), and that was allowed and working.