Background color for <p> in the accordian

Hi,

Is there a class already set-up to change the background color for the

in the accordian?

TIA

Hello @adventurer,

Thanks for writing to us.

There are some classes rendering but those classes are common classes and it would be rendered in all the Accordion elements. To style its content uniquely you need to add the custom class for that you need to go to the Cornerstone builder—>Accordion or Accordion Item–>Customize–>Add custom class here.

Hope it helps
Thanks

Sorry, I didn’t explain this clearly. BUT, I’m overthinking this and all I required was …

<p style="background-color:tomato;" in the content area

Thanks anyways!

Hello @adventurer,

Your paragraph code is broken. It should be:

<p style="background-color:Tomato;">Lorem ipsum...</p>

For reference, please check this out: https://www.w3schools.com/css/css_colors.asp

Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.

Best Regards.

Yes, you are correct, I was just trying to show the simple solution.

Glad that we could be of help.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.