nagasurendra commited on
Commit
7bae783
·
verified ·
1 Parent(s): 3ac6887

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +11 -12
templates/cart.html CHANGED
@@ -279,20 +279,18 @@
279
 
280
  /* Card styling */
281
  .suggestion-item {
282
- display: flex;
283
- flex-direction: column; /* Stack content vertically */
284
- align-items: center; /* Center content horizontally */
285
- justify-content: center;
286
  flex-shrink: 0;
287
- width: 150px; /* Set fixed width for each suggestion item */
288
  padding: 10px;
289
  border-radius: 10px;
290
  background-color: #fff;
291
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
292
  transition: transform 0.3s ease;
293
  margin-right: 15px; /* Ensure there's space between the cards */
294
- text-align: center; /* Center content */
295
- position: relative; /* Position relative for positioning the + icon */
296
  }
297
 
298
  .suggestion-item:hover {
@@ -300,19 +298,20 @@
300
  }
301
 
302
  .suggestion-item img {
303
- width: 100%; /* Make the image fill the width of the card */
304
- height: 120px; /* Fixed height for image */
305
  object-fit: cover; /* Ensure image fits correctly without distortion */
306
  border-radius: 5px;
307
- margin-bottom: 10px; /* Space below the image */
308
  }
309
 
310
  .suggestion-item div {
311
  flex-grow: 1;
312
- margin-bottom: 10px; /* Space below the text */
 
313
  }
314
 
315
- /* Position the + symbol button at the top-right of each card */
316
  .add-icon {
317
  position: absolute;
318
  top: 10px; /* Position at the top */
 
279
 
280
  /* Card styling */
281
  .suggestion-item {
282
+ display: flex; /* Use flexbox for horizontal layout */
283
+ align-items: center; /* Center content vertically */
284
+ justify-content: space-between; /* Space out content */
 
285
  flex-shrink: 0;
286
+ width: 250px; /* Set fixed width for each suggestion item */
287
  padding: 10px;
288
  border-radius: 10px;
289
  background-color: #fff;
290
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
291
  transition: transform 0.3s ease;
292
  margin-right: 15px; /* Ensure there's space between the cards */
293
+ position: relative; /* Make sure button is placed correctly */
 
294
  }
295
 
296
  .suggestion-item:hover {
 
298
  }
299
 
300
  .suggestion-item img {
301
+ width: 80px; /* Adjust image size */
302
+ height: 80px;
303
  object-fit: cover; /* Ensure image fits correctly without distortion */
304
  border-radius: 5px;
305
+ margin-left: 10px; /* Add space between the image and text */
306
  }
307
 
308
  .suggestion-item div {
309
  flex-grow: 1;
310
+ margin-right: 10px; /* Space between the image and text */
311
+ text-align: left; /* Align text to the left */
312
  }
313
 
314
+ /* Styling for the + symbol button (with no borders) */
315
  .add-icon {
316
  position: absolute;
317
  top: 10px; /* Position at the top */