Make Restaurant Menu image full width

Hello! Is there a way to make an image go the full width and be stacked on top of the item title and description?

Hi there, @Lily_Gamble :waving_hand:

The 3rd Item Layout should be just what you need:


Please give it a try and let me know how it worked for you :slightly_smiling_face:

Thank you for the response! I prefer the second item layout where the text is left-aligned and the price is on the same line as the item title. Is it possible to keep those aspects and move the image above the item?

Got you! This CSS code will do the trick:


  [class*='ItemLayoutTwo__Component-sc'] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  [class*='Image__ImageComponentContainer-sc'] {
    width: 100%;
    height: 100%;
  }

  [class*='Image__ImageComponent-sc'] {
    object-fit: contain;
  }

I’ve also noticed that a closing } is missing for your mobile CSS code:

Please add a 2nd closing } to your mobile CSS code, so that the CSS code for the image display would work correctly :slightly_smiling_face:

That worked perfectly. Thank you!

You’re very welcome!

In the meantime, we’d like to invite you to join our Birthday Contest, where you could win 6 FREE Months for your subscription.

Check the details and join in: Birthday Contest: 10 Winners, 5 Free Years with Elfsight! 🎁