Hi there, I’m trying to edit the look of an accordion on this page: http://www.mothercityhop.com/faq/
I’ve tried using element CSS as well as creating a new class with custom CSS, and neither works. Any idea why? Login deets attached.
Hi,
Thanks for writing in!
I am not exactly sure what you want to change in your accordion but you can try the following css code.
Add this in elements css
$el .x-acc-header {
background:yellow !important;
}
$el .x-acc-header.x-active {
background:red !important;
}
$el .x-acc-header-content {
color:blue;
}
It will change the background and color of the text.
If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.
I recommend you to watch following video that will help you to get started with CSS.
Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.
https://developers.google.com/web/tools/chrome-devtools/css/
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.