Loading...

Top
PFQ Banner

This is PokéFarm Q, a free online Pokémon collectables game.

Already a user? New to PFQ?

Single post in Styleclass and You: An Introduction

Forum Index > PokéFarm > Guides > Styleclass and You: An Introduction >

Clow's AvatarClow
Clow's Avatar
Hey guys, need a little bit of coding expertise: Is it possible to change the colour of certain a-sections in an accordion? You can't add a styleclass around just the a-sections because it confuses the accordion, and I can't figure out how to apply an nth-child either. Assistance appreciated!

Example

I stay pink

I wanna be blue

I stay pink

code

[sc=basic][accordion] [a-section=I stay pink][/a-section] [a-section=I wanna be blue][/a-section] [a-section=I stay pink][/a-section][/accordion][/sc] [style] .basic{ //blue .panel{ &>h3 { background-color:#46D9E9; color: #0A1C46;} &>div { } } } .basic{ //pink .panel { &>h3 { background-color:#E795DA; color: #260B22;} &>div { } } } [/style]
I know the div part of the code is empty, I just left it there for now
Avatar by Yukirona

Rose Garden Art Shop

Custom Art to Suit Your Taste

Chibis, Reference Sheets, Complete Pieces Visit The Shop
© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page