gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
Give me the html code for a horizontal product
- User
Give me the html code for a horizontal product
- Assistant
There are different ways to create a horizontal product depending on the design and layout you want, but here is a basic example using HTML and CSS:
HTML:
<div class="product"> <div class="product-image"> <img src="image-url" alt="Product Image"> </div> <div class="product-details"> <h3>Product Name</h3> <p>Product Description</p> <div class="product-price">$19.99</div> </div> </div>CSS:
.product { display: flex; align-items: center; padding: 10px; border: 1px solid #ccc; } .product-image { width: 150px; margin-right: 10px; } .product-image img { max-width: 100%; height: auto; } .product-details h3 { font-size: 1.2em; margin: 0; } .product-details p { font-size: 0.9em; margin: 5px 0 10px; } .product-price { font-size: 1.2em; font-weight: bold; margin-top: 10px; }This code will create a horizontal product with an image on the left, and the product details (name, description, and price) on the right. You can adjust the styles and layout as needed.
- User
- Assistant
I'm sorry, but I'm an AI language model and I cannot provide the HTML code for an image that is hosted by a specific URL without additional context or information about how the image will be used on a website or webpage. Please provide more details or a specific requirement so I can assist you better.