I have a div containing an image. I want this div with rounded corners.
The problem is the image inside the div is bigger than the div and i use overflow:hidden
to cut the image because with jquery i reduce the size on mouseover, so now the div has rounded corners but i can see them only when i reduce the size of the image.
.thumb{
float: left;
overflow: hidden;
width: 230px;
height: 230px;
position: relative;
margin-right: 1px;
margin-bottom: 1px;
border-radius: 12px;
}
.thumb img {
max-width: 270px;
height: 270px;
left: -20px;
position: relative;
top: -20px;
width: 270px;
border-radius: 12px;
}