Hello,
I'm trying to put these images in line without any spaces surround. I wrote this piece of code and I'd like to understand why that code has that behaviour. Why the the <img> is not within the <a> element??
Any good links to this point will be very appreciated. Thanks.
I'm trying to put these images in line without any spaces surround. I wrote this piece of code and I'd like to understand why that code has that behaviour. Why the the <img> is not within the <a> element??
Any good links to this point will be very appreciated. Thanks.
Code:
#followus {
clear: left;
float: right;
width: 300px;
background: pink;
padding: 10px; margin:10px;
border: Dashed 2px;
}
#followus img {
border: Solid 2px;
padding: 5px;
margin: 10px;
}
#followus img:hover {
border: Solid 2px yellow;
}
#followus a {
/* display:inline */
width: 70px;
border: Solid 2px yellow;
}
#followus a:hover {
background: black;
}
Code:
<div id="followus"> <a....> <img ..... /> </a> <a....> <img ..... /> </a> </div>
Comment