I am trying to put together a collection of images that function as links and light up when hovered over. However, my attempt to add a <div class="hover">
in front of each image caused them to no longer display in a horizontal line. How can I resolve this issue so that they remain in a horizontal row?
.hover {
opacity: 0.6;
filter: alpha(opacity=60);
}
.hover:hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
<body bgcolor="#000000">
<ul class="list-inline">
<div class="hover">
<img src="https://raw.githubusercontent.com/ItsGeekyPixel/Website/master/Images/PNGs/youtube-active.png" height="39px" width="99px"></div></li>
<div class="hover">
<img src="https://raw.githubusercontent.com/ItsGeekyPixel/Website/master/Images/PNGs/twitter-active.png" height="56px" width="56px"></div></li>
<div class="hover">
<img src="https://raw.githubusercontent.com/ItsGeekyPixel/Website/master/Images/PNGs/facebook-active.png" height="56px" width="56px"></div></li>
<div class="hover">
<img src="https://raw.githubusercontent.com/ItsGeekyPixel/Website/master/Images/PNGs/soundcloud-active.png" height="56px" width="72"></div></li>
<div class="hover">
<img src="https://raw.githubusercontent.com/ItsGeekyPixel/Website/master/Images/PNGs/googleplus-active.png" height="56px" width="56px"></div></li>
<div class="hover">
<img src="https://raw.githubusercontent.com/ItsGeekyPixel/Website/master/Images/PNGs/steam-active.png" height="56px" width="56px"></div></li>
<div class="hover">
<img src="https://raw.githubusercontent.com/ItsGeekyPixel/Website/master/Images/PNGs/twitch-active.png" height="56px" width="56px">
</div></li>
Apologies for any messy code or unclear explanation, this is my first time posting.
Thank you