Jump to content

Custom layout in accordion - ( HTML not working )

Recommended Posts

Posted

How can I make this layout in accordion? I am confused at value of service ( pricing ). How to take it to right?

I tried to add html with class but not woriking

 

Screenshot at Feb 07 09-52-19.png

  • Replies 1
  • Views 306
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

First, add an accordion with Accordion Block (don't enter pricing)

Next, add a Code Block under Markdown & paste this code to add pricing & float it to right

<style>
  li:nth-child(1) span.accordion-item__title:after {
    content: "$100";
    float: right;
}
  li:nth-child(2) span.accordion-item__title:after {
    content: "$200";
    float: right;
}
  li:nth-child(3) span.accordion-item__title:after {
    content: "$470";
    float: right;
}
</style>

image.thumb.png.c2f2f29e69174ce2ebe152a0f0f7269c.png

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.