Product Card in CSS by Nitin Kumar Output View Horizontal Vertical HTML CSS JS Tidy Leading Skin care Products arrow_outward BigGlow Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut euismod ligula. Glow New arrow_outward Turmeric Brightening Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut euismod ligula. Brightening Oragnic arrow_outward Skin Care Pack Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut euismod ligula. 50%Off full Skin Care HTML CSS JS Tidy @import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap"); * { margin: 0; padding: 0; } body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #fff; font-family: "Lato", sans-serif; font-weight: 400; font-style: normal; } section { padding-block: min(20vh, 2rem); width: calc(min(76.5rem, 90%)); margin-inline: auto; color: #111; h2 { text-transform: capitalize; letter-spacing: 0.025em; font-size: clamp(2rem, 1.8125rem + 0.75vw, 2.6rem); } a { display: inline-block; text-decoration: none; } .container { margin-top: 5em; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; .card { &:nth-child(1) .box .icon .iconBox { background: #7cb9e8; } &:nth-child(2) .box .icon .iconBox { background: #966fd6; } &:nth-child(3) .box .icon .iconBox { background: #ab274f; } ul { margin: 0; padding: 0; list-style-type: none; display: flex; align-items: center; flex-wrap: wrap; gap: 0.625rem; li { text-transform: uppercase; background: var(--clr-tag); color: #282828; font-weight: 700; font-size: 0.8rem; padding: 0.375rem 0.625rem; border-radius: 0.188rem; } .tag { color: #fff; background-color: #aba0d9; } .tagNew { color: #fff; background-color: #b19cd9; } .tagDis { color: #fff; background-color: #e40078; } } .content { padding: 0.938rem 0.625rem; h3 { text-transform: capitalize; font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem); } p { margin: 0.625rem 0 1.25rem; color: #565656; } } } .card-inner { position: relative; width: inherit; height: 18.75rem; background: var(--clr); border-radius: 1.25rem; border-bottom-right-radius: 0; overflow: hidden; .box { width: 100%; height: 100%; background: #fff; border-radius: 1.25rem; overflow: hidden; .imgBox { position: absolute; inset: 0; img { width: 100%; height: 100%; object-fit: cover; } } .icon { position: absolute; bottom: -0.375rem; right: rem; width: 6rem; height: 6rem; background: var(--clr); border-top-left-radius: 50%; border-top-right-radius: 50%; &:hover .iconBox { transform: scale(.9); } .iconBox { position: absolute; inset: 0.625rem; background: #282828; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; span { color: #fff; font-size: 1.5rem; } } } } } } } HTML CSS JS Tidy >_Console Clear Console >_Console File Setting HTML Code Playground Setting Title Description Fancy Product card in CSS without using an external library. Copy and Paste code on your project to display interactive product cards. Catagory CSS Tags CSS Card Product Card Resource Add External Stylesheets and Script