Jump to content

Help with accordion text and image

Recommended Posts

Posted

Hello, 

I'm trying to put my text next to my image in desktop screen and under my image when seen in phone screen. I also  struggle with doing my image wider when seen in phone. 

This is my code:

#block-yui_3_17_2_1_1716345216194_308902 {
    
li:nth-child(1) .accordion-item__description:before {
  
    content: "";
  display: block;
    width: 100%; /* image width, you can also use px */
    height: 150px; /* image height */
  width: 150px; /* image height */
  border-radius: 15px;
  
    background-image: url(https://static1.squarespace.com/static/6505228afdd85426284bf7ad/t/66728fe4f00cd419ec25abec/1718783992276/dji_fly_20231105_121652_0012_1699166046586_photo+2+copia.jpg) ;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 20px; /* space between image-text */
}
 

Thank you!!!

Captura de Pantalla 2024-06-20 a las 11.16.58 a. m..png

Captura de Pantalla 2024-06-20 a las 11.17.03 a. m..png

  • Replies 1
  • Views 920
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.