Loading...

Top
PFQ Banner

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

Already a user? New to PFQ?

please help me with coding !!!!!

Forum Index > Core > Help >

CANDYSWiRL's AvatarCANDYSWiRL
CANDYSWiRL's Avatar
i hope i put this in the correct place but ,,,, can someone help me with a few codes ,, !!?? im remaking my art shop and i need help !! (╯︵╰,) well ,,, is it possible to change how a tab looks ?? picture from pokefarm wiki! i want to change the color of these tabs including the text color and maybe add a background but i dont know how !!!! is it possible to change them ?? thank you !!!!!!!!!
Windwalker5's AvatarWindwalker5
Windwalker5's Avatar
It's possible, with the use of Cascading Style Sheets (CSS). Not sure how experienced you are, so here goes: To use CSS to style your post, you'll need to put your CSS code in between [style] and [/style]. Stuff in the [style] tag applies to everything in the post, so you can put it anywhere you want. From what I've seen, most people put the CSS at the bottom of the post, but that's up to you. Specifically for changing the colour and background, you'd use this: [style] .tabbed_interface { & > ul { & > li { background: black; color: white; &.tab-active { background: white; color: black; } } } > .tab, > .tab-active { background: #d3dfff; color: white; } } [/style] This code gives you something that looks like this:
  • Tab 1
  • Tab 2
  • Tab 3
Content 1
Content 2
Content 3

Uh... I'm not exactly sure how to explain this, so bear with me. In general: "background:" changes the background colour, and "color" changes the text colour. Modifying the tab appearance:
  • "ul" modifies the appearance of the actual list: the thing containing the tabs.
  • "li" modifies the appearance of the tabs.
  • ".tab-active" modifies the appearance of the tab that's been clicked on.
Modifying the content appearance:
  • The "> .tab, > .tab-active" modify the appearance of the actual tab content.

To change the colours, replace "black" and "white" and "#d3dfff" with a hex code, RGB, HSL, etc., like I have with the tab content background. As long as the colours don't break any legibility rules, you should be fine c: For more in-depth help you can refer to Aemilia's Guide here! Hope this helps :) (and someone please feel free to correct me if I got anything wrong it's getting pretty late XD) Edit: fixed some stuff, should actually work now.
⋅・• ༻⋆ Trade Shop | Journal ⋆༺ •・⋅ Forum avatar made by me
CANDYSWiRL's AvatarCANDYSWiRL
CANDYSWiRL's Avatar

QUOTE originally posted by Windwalker5

It's possible, with the use of Cascading Style Sheets (CSS). Not sure how experienced you are, so here goes: To use CSS to style your post, you'll need to put your CSS code in between [style] and [/style]. Stuff in the [style] tag applies to everything in the post, so you can put it anywhere you want. From what I've seen, most people put the CSS at the bottom of the post, but that's up to you. Specifically for changing the colour and background, you'd use this: [style] .tabbed_interface { & > ul { & > li { background: black; color: white; &.tab-active { background: white; color: black; } } } > .tab, > .tab-active { background: #d3dfff; color: white; } } [/style] This code gives you something that looks like this:
  • Tab 1
  • Tab 2
  • Tab 3
Content 1
Content 2
Content 3

Uh... I'm not exactly sure how to explain this, so bear with me. In general: "background:" changes the background colour, and "color" changes the text colour. Modifying the tab appearance:
  • "ul" modifies the appearance of the actual list: the thing containing the tabs.
  • "li" modifies the appearance of the tabs.
  • ".tab-active" modifies the appearance of the tab that's been clicked on.
Modifying the content appearance:
  • The "> .tab, > .tab-active" modify the appearance of the actual tab content.

To change the colours, replace "black" and "white" and "#d3dfff" with a hex code, RGB, HSL, etc., like I have with the tab content background. As long as the colours don't break any legibility rules, you should be fine c: For more in-depth help you can refer to Aemilia's Guide here! Hope this helps :) (and someone please feel free to correct me if I got anything wrong it's getting pretty late XD) Edit: fixed some stuff, should actually work now.
omg thank you so much !!!!!!!!!!!!!!!! this helps alot!!!!!!!!!!!! i can now work on my art shop!!!!!!!!!!!!!!!11 (๑˃ᴗ˂)ﻭ

Cannot post: Please log in to post

© PokéFarm 2009-2023 (Full details)Contact | Rules | Privacy | WikiGet shortlink for this page