Configure Accordion headings using CSS editor

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
vegard.grutle
Posts: 59
Joined: Fri Mar 17, 2017

20 Jul 2017

Hi!

Is there an easy way to configure accordion headings using CSS editor?

Thanks!

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

20 Jul 2017

Hello, Vegard!

If you only need to change colors, it is preferable to use inbuilt Layout settings of Accordion.
Accordion Layout.png
Accordion Layout.png (5.14 KiB) Viewed 3714 times
But if you absolutely have to use CSS, you can use classes to select parts you want to change, for example:

Code: Select all

.ui-accordion-header{
	background: blue;
	color: white;
}
.ui-accordion-header-active{
	background: red;
}
All these classes can be seen in the Source Code of the Form when you open it. You can also use Inspector to select certain parts you want to change and look up the classes you need to use for that.
Accordion Inspector.png
Accordion Inspector.png (67.27 KiB) Viewed 3714 times
Cheers

User avatar
vegard.grutle
Posts: 59
Joined: Fri Mar 17, 2017

20 Jul 2017

Hi, again!

Obviously, I need to update to the latest version :)

Thansk!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests