Jump to content

Quick change custom accordion button

Recommended Posts

Posted

Hi. I've added buttons to my accordion.

  • How do I remove the underline from the button (text-decoration CSS not working)?
  • How do I get the button to "center" in the accordion block and not be left aligned?
  • How do I add one or two line space from the text in the accordion and the button?

}
.sqs-block-accordion a {
 border: 0px;
 background: #FFCC02;
 color: # !important;
 padding: .75rem;
  font-weight: 650;
  border-radius: 18px;
  display: inline-block;
  padding-top: .75rem;
  padding-bottom: .75rem;
  padding-right: 2rem;
  padding-left: 2rem;
  text-decoration-line: none !important;
  &:hover {
    background: #282E42 !important;
    transition: 0.2s;
    color: #FFF !important;
  } 
}

website: www.gtmenabler.com

  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

#1. #3. Use this CSS code

div.accordion-block p a {
    border: none !important;
    text-decoration: none !important;
    background-image: None !important;
    margin-top: 50px !important;
    display: inline-block !important;
}

#2. Use this CSS code

div#block-yui_3_17_2_1_1703965115767_14755 div.accordion-item__description>p:last-child {
    text-align: center;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.