I have a page that has content populated from a php script pulling from a db. The amount of content that populates each div element is different in size. I want to be able to make the entire div a link which i have been able to accomplish. The problem I am facing is that I can’t style the a:hover element to encompass the entire div because I can’t define a height. Any suggestions?
It works just like I want it to, except that the hover only highlights the first line of the div. The whole div is clickable as a link but it does not use the hover styling for color.
I am using the most current version of firefox,3.6.12, to test in. Actually in ie. it seems to work just fine. All the attributes of hover seem to work except the background color in firefox. I can change the hover text color, just not the background.
It seems that having the php content wrapped in a span that is floated is causing the problem. I just don’t know why.
Donboe adding the float:left; to the anchor worked well. You posted just as I was editing to add that it was the floated span that seemed to be the problem.
Now I just need to figure out how to tuck this bit of css styled content into the wordpress page I’m working with. Something in the wordpress styling is conflicting so that still only the first line in my div is highlighted on hover.