Jump to content

Style Twitter feed horizontally but stack on mobile?

Recommended Posts

Posted

Site URL: https://bumblebee-chartreuse-kmxn.squarespace.com

 

password = rprednep   

Hello, I have found a bit of CSS code to display my Twitter feed horizontally:

.twitter-block .tweet-list {
    column-count: 3;
}
div#block-#block-yui_3_17_2_1_1607288772836_6959 {
    width: 100%;
}

 

And have the number of tweets to show set to "3".

 

This looks okay on desktop, but I want to stack tweets on mobile instead of just squishing horizontally. Hoping someone can help, thanks! 

  • Replies 2
  • Views 547
  • Created
  • Last Reply
Posted
2 hours ago, KellenMcG said:

Site URL: https://bumblebee-chartreuse-kmxn.squarespace.com

 

password = rprednep   

Hello, I have found a bit of CSS code to display my Twitter feed horizontally:

.twitter-block .tweet-list {
    column-count: 3;
}
div#block-#block-yui_3_17_2_1_1607288772836_6959 {
    width: 100%;
}

 

And have the number of tweets to show set to "3".

 

This looks okay on desktop, but I want to stack tweets on mobile instead of just squishing horizontally. Hoping someone can help, thanks! 

@media only screen and (max-width: 640px) {
  .twitter-block .tweet-list {
    column-count: 1;
  }
}

image.png.d56041ae08b2e0529865ee8179e95755.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.