Hey guys I just started messing around with hovering and images and pretty excited to have learned this.
I actually came on a problem with CSS3
I was wondering if all the other images can remain in tact without moving when I hover over them. Ive tried looking for something in CSS3 but nothing came out.
I have an image hovering up to 200px width and height. I was wondering if all the other images can stay fixed when the images get larger.
anyhow this is my CSS
*{
margin: 0px;
padding 0px;
}
body{
background-image: url('http://pxwallpaper.com/wp-content/uploads/2013/08/barcelona-black-new-wallpaper-94.jpg');
background-size:cover;
}
#container{
width: 900px;
height: 900px;
background-color: white;
margin: 60px auto;
overflow:auto;
}
img.size{
width:100px;
height:100px;
-webkit-filter:grayscale(90%);
opacity:0.4;
}
#container ul{
margin:70px 30px 6px 10px;
}
#container li{
float:left;
margin: 30px;
list-style-type:none;
cursor:pointer;
}
#container img:hover{
filter:grayscale(0%);
-webkit-filter: grayscale(0%);
opacity: 2;
width:200px;
height:200px;
}
and my HTML
<html>
<head>
</head>
<title>
</title>
<body>
<div id="container">
<ul>
<li><img class="size" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRnNn3yg1C8fjtxGOHRLfYWRGnd-jsxPc8eZrd
rVfYtm4P73YEm9w"></li>
<li><img class="size" src="http://kodiakherbal.com/wp-content/uploads/2013/03/canmore_rocky_mountains-hd-wallpaper.jpg"></li>
<li><img class="size" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRnNn3yg1C8fjtxGOHRLfYWRGnd-jsxPc8eZrdrVfYtm4P73YEm9w"></li>
<li><img class="size" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRnNn3yg1C8fjtxGOHRLfYWRGnd-jsxPc8eZrdrVfYtm4P73YEm9w"></li>
<li><img class="size" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRnNn3yg1C8fjtxGOHRLfYWRGnd-jsxPc8eZrdrVfYtm4P73YEm9w"></li>
<li><img class="size" src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRnNn3yg1C8fjtxGOHRLfYWRGnd-jsxPc8eZrdrVfYtm4P73YEm9w"></li>
</ul>
</div>
</body>
</html>