.post img{border: 1px solid #000000;padding: 1px;} .post a:hover img{border: 1px solid #6699FF;}