Jump to content

Style Twitter feed horizontally but stack on mobile?

Recommended Posts

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! 

Link to comment
  • Replies 2
  • Views 501
  • Created
  • Last Reply
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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

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.