Adjust the line height of a paragraph in an accordion widget?

Wondering if someone could help me adjust the line height of the paragraph inside the accordion widget.


Tagged:

Best Answer

  • Elizabeth_Fedak
    Elizabeth_Fedak Member Posts: 106 MVP
    Answer ✓

    .accordion-description .section-inner {

      line-height: 40px;

    }


    That should work for you, but I think some of the accordions have different classes. And you probably won't want the line height to be 40px! Add it in dev mode to the CSS for that page.

Answers

  • Aj_Cre8
    Aj_Cre8 Member Posts: 630 MVP

    You will most likely need CSS. If you can provide the link to your site or a preview link if it's unpublished, we may be able to assist.

  • Thomas_Connery
    Thomas_Connery Member Posts: 226 MVP

    Thanks @Elizabeth_Fedak, the worked perfectly.

  • SassyK
    SassyK Member Posts: 4

    Hello, I also have this question. I see @Elizabeth_Fedak has answered it, however I do not know exactly where to insert it within the CSS of the page. Could you explain? Thank you!

  • Elizabeth_Fedak
    Elizabeth_Fedak Member Posts: 106 MVP

    Hey @SassyK if you're new to using custom code on your site, please read the support pages on doing so first and save a site backup.

    Create backup instructions: https://support.duda.co/hc/en-us/articles/360061888433-Backup-Sites

    Here's instructions to add custom HTML/CSS to your site, available on Team plan and higher:https://support.duda.co/hc/en-us/articles/1500001598262-Developer-Mode