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 Guide to CSS: Beginner to Expert

Forum Index > PokéFarm > Guides > Guide to CSS: Beginner to Expert >

Monclops123's AvatarMonclops123
Monclops123's Avatar

QUOTE originally posted by Orchid

QUOTE originally posted by Monclops123

Hullo! Brand new to css and BBCode. Trying to display my type order for the type race and have all types grayscale except for my active type. I was able to make everything grayscale using a style class but if I apply a different style class to the active type it creates a line break. How do I make it stay inline? Current code w/o active type:Type Race Rotation:
Neonyan has this post which is essentially what you're trying to do, just it uses different images.
Thank you! I just needed to set the display to flex and now it works! Also, big thanks to Neonyan for the example code! Type Race Rotation:[ ][sc=notcurrent][ ][type=flying][ ][type=bug][ ][type=grass][ ][type=fairy][ ][type=dragon][ ][type=poison][ ][type=ghost][ ][type=electric][ ][type=steel][ ][type=rock][ ][b][type=fire][/b][ ][type=ice][ ][type=dark][ ][type=fighting][ ][type=water][ ][type=psychic][ ][type=normal][ ][type=ground][ ][/sc] [pkmnpanel=fqdH0] [style] .notcurrent { display: flex; flex-wrap: wrap; align-items: center; img {filter: grayscale(1);} b { img {filter: grayscale(0);}} } [/style] Type Race Rotation:
Lv. 9 — 270 / 339
Aspear BerryAspear Berry
Aspear Berry (SOUR)
Cheri BerryCheri Berry
Cheri Berry (SPICY)
Chesto BerryChesto Berry
Chesto Berry (DRY)
Pecha BerryPecha Berry
Pecha Berry (SWEET)
Rawst BerryRawst Berry
Rawst Berry (BITTER)
Likes:
Spicy food
RockFlying
Happiness MAX
Brave nature
© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page