html and CSS code for make a shop website

From psychen, 1 Year ago, written in CSS, viewed 126 times. This paste will bite the big one in 1 Second.
URL https://paste.intergen.online/view/e19cd7c5 Embed
Download Paste or View Raw
  1. This HTML5 code is a simple template for a store site:
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>فروشگاه آنلاین</title> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <div class="container"> <h1>فروشگاه آنلاین من</h1> </div> </header> <nav> <ul> <li><a href="#">خانه</a></li> <li><a href="#">محصولات</a></li> <li><a href="#">درباره ما</a></li> <li><a href="#">تماس با ما</a></li> </ul> </nav>
  5. <section class="products"> <div class="container"> <div class="product"> <img src="product1.jpg" alt=""> <h2>product name</h2> <p> Price: 99,000 Tomans</p> <a href="#" class="btn">Add to cart</a> </div> <!-- Other products --> </div> </section>
  6. <footer> <p>Designed by me | All rights reserved</p> </footer> </body> </html>
  7. This is just a basic template and it needs more codes in the products, shopping cart, payment, etc sections to turn it into a full store. But this will be a good starting point for you.
  8.  
  9. give me css style modern for this htm,l
  10.  
  11. This CSS code gives a modern style to that HTML template:
  12.  
  13. *{
  14. box-sizing: border-box;
  15. }
  16.  
  17. body {
  18. font-family: "Poppins", sans-serif;
  19. }
  20.  
  21. header {
  22. background: #333;
  23. color: #fff;
  24. padding: 1rem;
  25. }
  26.  
  27. .container {
  28. max-width: 1200px;
  29. margin: 0 auto;
  30. text-align: center;
  31. }
  32.  
  33. nav {
  34. background: #ddd;
  35. padding: 1rem 0;
  36. }
  37.  
  38. nav ul {
  39. list-style: none;
  40. display: flex;
  41. justify-content: center;
  42. }
  43.  
  44. nav li a {
  45. color: #333;
  46. text-decoration: none;
  47. padding: 1rem 2rem;
  48. }
  49.  
  50. .products .product {
  51. border: 1px solid #ddd;
  52. padding: 1rem;
  53. margin-bottom: 2rem;
  54. }
  55.  
  56. .products img {
  57. width: 100px;
  58. }
  59.  
  60. .products h2 {
  61. margin: 0 0 0.5rem 0;
  62. }
  63.  
  64. .products .btn {
  65. background: #333;
  66. color: #fff;
  67. padding: 0.5rem 1rem;
  68. text-decoration: none;
  69. }
  70.  
  71. footer {
  72. background: #333;
  73. color: #fff;
  74. text-align: center;
  75. padding: 1rem;
  76. }
  77.  
  78. @media (min-width: 700px) {
  79. .products .product {
  80. display: flex;
  81. align-items: center;
  82. }
  83.  
  84. .products img {
  85. width: 200px;
  86. margin-right: 1rem;
  87. }
  88. }
  89.  
  90. This CSS code includes a simple grid layout, modern font, attractive colors and responsive measurements that will make your online store look attractive and modern.
  91.  
  92. If you need more changes, you can edit the CSS to give your site a completely individual look.
  93. The HTML:
  94.  
  95. I used semantic HTML5 elements like <header>, <section>, and <footer> to divide the main parts of the page. This makes the code more readable and accessible.
  96.  
  97. The <nav> contains an unordered list <ul> with navigation links. This creates a simple nav menu.
  98.  
  99. The .hero section contains a large heading, paragraph and call-to-action button. This is the initial area that captures a visitor's attention.
  100.  
  101. There are empty <section> elements for features, products, testimonials and footer that you can populate with relevant content.
  102.  
  103. The CSS:
  104.  
  105. I only provided basic styles for body, header and .hero section.
  106.  
  107. You'll need to add styles for:
  108.  
  109. The nav elements
  110. The .features section
  111. The .product section (product cards)
  112. The .testimonials section (testimonial cards)
  113. The footer
  114. The .container class is used to center align content within a maximum width. This creates a responsive layout.
  115. <a href="https://canseo.ir/web-design/">canseo wordpress</a>
  116.  
  117. Additional details:
  118.  
  119. Adding content to the empty sections
  120. Styling the nav menu
  121. Styling product & testimonial cards
  122. Adding media queries for responsiveness on mobile
  123. Adding
  124. I recommend:
  125.  
  126. Using a CSS framework like Bootstrap or Tailwind for quick responsive styling
  127. Adding
  128. Gathering testimonials from actual customers
  129. Providing useful information in the footer
  130. Addingcontact form for inquiries
  131. If you do continue developing the page:
  132.  
  133. Focus on the user experience
  134. Keep it simple and clutter-free
  135. Add responsive media queries
  136. Test it across devices
  137. Let me know if you have any other questions! I'd be happy to provide more tips or recommendations as you build out the website.

Reply to " html and CSS code for make a shop website"

Here you can reply to the paste above