Cloudwards.net may earn a small commission from some purchases made through our site. However, any earnings do not affect how we review services. Learn more about our editorial integrity and research process.

Responsive Product Card Html | Css Codepen

.product-info p { font-size: 14px; margin-bottom: 20px; }

.product-image { width: 100%; height: 200px; margin-bottom: 20px; } responsive product card html css codepen

button { background-color: #4CAF50; color: #fff; border: none; padding: 10px 20px; font-size: 16px; cursor: pointer; } .product-image { width: 100%

A product card is a visual representation of a product that provides essential information such as product name, description, price, and images. It is typically used in e-commerce websites and applications to showcase products in a concise and appealing way. A product card should be visually appealing, easy to navigate, and optimized for various devices and screen sizes. } .product-info h2 { font-size: 18px

.product-image { width: 100%; height: 200px; margin-bottom: 20px; }

.product-info h2 { font-size: 18px; margin-bottom: 10px; }

@media (max-width: 768px) { .product-card { flex-direction: row; align-items: center; } .product-image { width: 30%; height: 150px; } .product-info { width: 70%; text-align: left; } }

↑ Top