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:

2065180334_2022-09-06111427.thumb.png.8c37e603ede29616bbe3d50cafdd59b1.png

(hidden)

1483522736_2022-09-06111446.thumb.png.4f2c117a4c298b7736364c4836acc56d.png

(on click)

 

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

image.png.d87116c1096709e25d554f21ac535202.png

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;
}

image.thumb.png.5b4548a1014393d0c0884f59ea68c33d.png

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.