I've been trying to get a different icon in each header of the accordion but I can't seem to figure out how for the life of me. I have tried methods of my own but they don't work and i've also tried to search on Google for some methods which I looked at the method on how this person suggested but it doesn't work for me. This is what my accordion styling looks like right now.
- .ui-accordion .ui-accordion-header {
- display: block;
- cursor: pointer;
- position: relative;
- margin-top: 2px;
- margin: auto;
- min-height: 0; /* support: IE7 */
- background-color: #fff;
- width: 900px;
- height: 30px;
- /* background */
- background-repeat: repeat;
- background-image: url(../images/accordion_bar.png);
- }
- .ui-accordion .ui-accordion-icons {
- padding-left: 2.2em; /*2.2em*/
- }
- .ui-accordion .ui-accordion-content {
- overflow: auto;
- border: 2px solid #000;
- width: 949px;
- margin: auto;
- border-top: 1px;
- }
- .ui-accordion .acc_header {
- font-size: 24px;
- font-weight: bold;
- font-family: "CordiaUPC";
- }
- .ui-accordion-header.s1 .ui-icon {
- background: url(../images/icon/gmod_icon.png);
- }
- .ui-accordion-header.s2 .ui-icon {
- background: url(../images/icon/minecraft_icon.png);
- }
Also here's a picture of what i'm trying to get it to look like.
