Accordion indicator/toggle icon alignment

Hi There,

I’ve tried combing through the forum and trying my own CSS with no luck.

I’m wondering how I can align the indicator/toggle icon to the top. I’ve put some accompanying text with my header and have embedded a form in the content section.

Right now, the icon is vertically aligning to the center.

Here’s what the accordion header currently looks like:
Screen Shot 2020-03-26 at 10.32.48 AM

How do I get the toggle icon to vertically align to the top where the header text begins?

Thank you so much!

Hello Katie,

Thanks for writing in! Please be advised that the icon should always display at the middle of the headline title for the accordion. To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

Meanwhile, please also provide any of the custom css that you have added so that we can inspect it.

Best Regards.

Thank you Ruenel! Here’s the link to the accordion:

I’ve added this to my global CSS settings:

.x-accordion-toggle.{
vertical-align: top;
}

Ideally, I’d like for the accordion to display like this, where the toggle stays at the top of the heading section when open and closed:
toggle position

Thank you again for your help.

Hey Katie,

You can remove your CSS and instead add the following code in the Element CSS of the accordion element:

$el .x-acc-header-content {
    align-items: baseline;
}

image

Hope this helps!

That worked PERFECTLY. Thank you so much nabeel!

We are delighted to assist you with this.

Cheers!

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