Jump to content

Button styling on markdown block

Recommended Posts

Posted

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!

  • Replies 1
  • Views 719
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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.