Jump to content

Button styling on markdown block

Recommended Posts

Site URL: https://fox-chihuahua-df3j.squarespace.com/projects/tumblrmobile

Hi,  i'm trying to make a clickable expandable piece of text (like an accordion but not a +/- menu, more like a button that shows/hides text)

I've used a markdown block to get the text show/hide feature, as shown:




(on click)


However, I'd like the pink text to look more like (and act like) a button instead. 


Like this, where it also reacts on hover.

Perhaps a markdown block isn't the best way to create a show/hide feature with a button, so if anyone knows how to make a button that shows/hides text that'd be really useful, thank you!

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Add to Design > Custom CSS

.markdown-block details summary {
    background-color: #cf347f;
    color: white !important;
    border-radius: 20px;
    padding: 10px;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.