I have some icons in my footer that link to various social networks. I would like to be able to change their colour as when hovering over them however all my attempts so far have been unsuccessful.
Here is my code currently, which displays the images correctly but of course, does nothing on mouseover:
HTML
<a target="_blank" href="#"><img src="http://te-al.co.uk/images/icons/f-icon20.png" alt="follow us on Facebook!"></a>
<a target="_blank" href="#a"><img src="http://te-al.co.uk/images/icons/t-icon20.png" alt="follow us on Twitter!"></a>
<a target="_blank" href="#"><img src="http://te-al.co.uk/images/icons/i-icon20.png" alt="follow us on Instagram!"></a>
<a target="_blank" href="#"><img src="http://te-al.co.uk/images/icons/v-icon20.png" alt="follow us on Vimeo!"></a>
I have tried using both <img class="f-icon">
and <div class="f-icon">
, whilst specifying the width
, height
, and background-image
for both .f-icon
and .f-icon:hover
, however this doesn't work; it repeats the image across a width longer than the width I had specified. If I add no-repeat to background-image, the icons disappear, so I am really stuck.