@prantiknoor
Posted
I have another suggestion. Instead of adding border-radius
on both elements, you can add it directly to .product-preview
. So then, you don't need to worry about it on mobile/desktop.
.product-preview {
border-radius: 10px;
overflow: hidden;
}
.product-image {
/* border-radius: 10px 0 0 10px; */
}
.product-main {
/* border-radius: 0 10px 10px 0; */
}
Marked as helpful
@johnnysedh3lllo
Posted
@prantiknoor wow, that easy? i couldn't figure out. thank you I'll implement it. can you please explain a little bit what the overflow: hidden;
decleration does to it?
@prantiknoor
Posted
@johnnysedh3lllo It hides overflowing contents. As the image and content overflowing on the corners, overflow: hidden
hides that.
Marked as helpful
@johnnysedh3lllo
Posted
@prantiknoor thanks alot man. God bless you. just tried and it works like a charm.
@prantiknoor
Posted
@johnnysedh3lllo Thank you 🙂