img { background-color: #CE93D8; /* change this color */ border-color: #4A148C; /* change this color */ border-style: double; /* change this style */ border-width; 3px; /* change this width */ margin-top: 0px; /* distance from top of page wrapper */ margin-right: 200px; /* distance from right of page wrapper; change this value */ margin-bottom: 0px; /* distance from bottom of page wrapper */ margin-left: 300px; /* distance mg { padding: 4px; /* padding around the image; change this value */ opacity: 1.0; /* opacity ranges from 0 to 1 where 1 is fully visible and 0 is completely transparent */ width: 400px; height: 309px; } img:hover { opacity: 0.4; /* opacity ranges from 0 to 1 where 1 is fully visible and 0 is completely transparent */ }