Log in

View Full Version : Highlighting link and float problem



fase_xi
01-21-2011, 11:31 AM
Hi,

I want to create a link that when you rollover, the link is highlighted. That is easy to do by assigning background color to the link. However, whenever I start using float, the highlight effect disappears. I'm not sure what the problem is. I provided an example here. (http://dl.dropbox.com/u/19242919/example.html)

I have to use float since I want to create a fixed amount of spacing between each set of words (as in the example). Is there any way to solve this?

azoomer
01-21-2011, 06:13 PM
For some reason that I'm unable to explain, it seems that the highlighting will work on the floated elements if you add: float: left; to this css rule:


a.articleList:link {
text-decoration: none;
color: #3c3935;
float:left;
}

fase_xi
01-21-2011, 06:41 PM
Well, it would be nice to know why, but it works nevertheless. So, thank you!