image-replacement

Mouseover on radio button replacement?

假如想象 提交于 2019-12-24 19:16:20
问题 I'm using jQuery to replace my radio buttons on this page - http://www.justdoors.co/product-selection/ and was wondering if it would be possible to add a mouseover effect as well? I would like for the grey arrows that turn green when selected to change to green on mouseover/hover as the user goes up and down the list. 回答1: It seems like all your replaced radio buttons have the class "imageCheck" so you could bind the effect on mouseover/mouseout: $('.imageCheck') .mouseover(function() { $

How to use the HTML5 Boilerplate ir class with inline elements?

大憨熊 提交于 2019-12-10 11:37:01
问题 I'm using HTML5 Boilerplate css and I would like to apply the ir class to my footer menu. The menu is in a list, and I use inline-block to display this list horizontally. Here is the fiddle of the code. You can see that the image replacement works, but the text menu element after (that has no image) is translated to the bottom. This is due to the .ir:before css rule that simulate a block element which takes some room. Is there a way to use the HTML5 Boilerplate technique without this side

How to use the HTML5 Boilerplate ir class with inline elements?

喜你入骨 提交于 2019-12-08 09:15:45
I'm using HTML5 Boilerplate css and I would like to apply the ir class to my footer menu. The menu is in a list, and I use inline-block to display this list horizontally. Here is the fiddle of the code. You can see that the image replacement works, but the text menu element after (that has no image) is translated to the bottom. This is due to the .ir:before css rule that simulate a block element which takes some room. Is there a way to use the HTML5 Boilerplate technique without this side-effect ? If not, I will go back to the text-indent:-9999px technique. Bonus question : what are the