Loading...

Top
PFQ Banner

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

Already a user? New to PFQ?

Guide to CSS: Beginner to Expert

Forum Index > PokéFarm > Guides >

Pages: 123··· 2627282930

QUOTE originally posted by Mio Xenoblade

been playing around with this for ages and i can't seem to work it out! how do i make tabs go to the right? i know how to make them vertical, but they go to the left and i can't work out what i need to change to make them go to the right.
can you give an example of what you're trying to do?

Mochi ✪ 21 ✪ they/he/kit


Your local catboy hoarding quirky, bashful, and docile mons!
500/500
Odds and Ends - Orthrus' - My Guide

Type Race and Hunts!


Score: 0
Made by LycanKai
Current Hunt: Orthworm! Most Recent Melan: Nincada!
Coded by Me! Credits
Mio Xenoblade's AvatarMio Xenoblade
Mio Xenoblade's Avatar
essentially i'm making a free-to-use shop theme modelled after the shops in undertale/deltarune.

official example, screenshotted from deltarune

i'm trying to make the tabs go to the right, like how the "buy/sell/talk/exit" panels are in the image. here's my tabbed interface code:

.tabbed_interface { background: none; border: none; box-shadow: none; display: grid; grid-template-columns: auto 1fr; >ul{background: none; display: flex; flex-flow: column; justify-content: right;} & > ul { background: none; border: 4px solid white; box-shadow: none; & > li { background: none; padding: 1%; margin: 3px; margin-bottom: 5px; border: none; box-shadow: none; color: @text; &.tab-active { background: none; } } & > li:hover { cursor: pointer; } } > .tab, > .tab-active { background: none; color: @text; padding: 1%; border: 4px solid white; box-shadow: none; } }
with what it looks like now alongside my other code:

i just want to make the tabs go from the left to the right before i play around with sizing and stuff!
juno
mio is fine too!
| adult | any pronouns | pfq's otter hoarder
f2u codecode shoptrade shopjournal
art by me for my use only!
i'm so sorry-- something happened irl and i got busy and i don't have the energy to do it 😭 i promise i will absolutely try to get to this
Mio Xenoblade's AvatarMio Xenoblade
Mio Xenoblade's Avatar

QUOTE originally posted by JustCallMeMochi

i'm so sorry-- something happened irl and i got busy and i don't have the energy to do it 😭 i promise i will absolutely try to get to this
don't worry abt it don't stress ;w; i'm gonna keep playing around with it myself after i've slept to see if i can work it out with a fresh mind
NoxianGayce's AvatarNoxianGayce
NoxianGayce's Avatar
Hello, I'm working on learning CSS (mostly using this guide which is wonderful btw) but I'm trying to figure out how to get rid of something with my tab interface, the little space header on the top so it is more even with the top border

what it looks like

code for Style

[style] //colors// @bkg1: #aace9c; @bkg2: #529873; @text: #dfeeeb; @accent1: #6dcb99; @accent2: #00524c; //Code// .template{ background: @bkg2; border: 2px dashed @accent2; border-radius: 5px; font-size: 10pt; color: @text; padding: 1%; b,u,i {color: @text;} hr {border: 0px; width: 100%;} a, a:visited { color: @accent1; letter-spacing: 1px; trasition: all 5s; } a:hover {color: @accent2; letter-spacing: 4px; transition: all 500ms;} } div.tooltip_content {background: @text ; color: @bkg2; border: 2px dotted @accent2;} .bbcode_tooltip {border-bottom: 0px;} .panel {background: @bkg2; border: 1px dotted @accent2; color: @bkg2; &> h3 { > a {color: @accent2;} border: 1px solid @accent2; background: @bkg1; color: @text;} &> div {color: @text;a:link, a:visited {color: @text;}}} table {border: 2px dashed @accent2;} th {border: 1px solid @bkg2; color: @text; background: @accent2; text-align: center;} td {border: 1px solid @accent2; background: @bkg1; color: @text; text-align: center} .tabbed_interface {background: @bkg2; border: none; & > ul{background: @bkg1; border: 1px solid @accent2; & > li{background: @bkg2; border: 1px solid @accent2; padding: 0%; border: 1px solid @accent2; color: @text; &.tab-active{background: @accent1}} & > li:hover{cursor: pointer;}} > .tab, > .tab-active{background: @accent2; color: @text; padding: 0%;}}[/style][
  • ❤️
  • ⭐️
  • ❤️
TR 0

QUOTE originally posted by NoxianGayce

Hello, I'm working on learning CSS (mostly using this guide which is wonderful btw) but I'm trying to figure out how to get rid of something with my tab interface, the little space header on the top so it is more even with the top border

what it looks like

code for Style

[style] //colors// @bkg1: #aace9c; @bkg2: #529873; @text: #dfeeeb; @accent1: #6dcb99; @accent2: #00524c; //Code// .template{ background: @bkg2; border: 2px dashed @accent2; border-radius: 5px; font-size: 10pt; color: @text; padding: 1%; b,u,i {color: @text;} hr {border: 0px; width: 100%;} a, a:visited { color: @accent1; letter-spacing: 1px; trasition: all 5s; } a:hover {color: @accent2; letter-spacing: 4px; transition: all 500ms;} } div.tooltip_content {background: @text ; color: @bkg2; border: 2px dotted @accent2;} .bbcode_tooltip {border-bottom: 0px;} .panel {background: @bkg2; border: 1px dotted @accent2; color: @bkg2; &> h3 { > a {color: @accent2;} border: 1px solid @accent2; background: @bkg1; color: @text;} &> div {color: @text;a:link, a:visited {color: @text;}}} table {border: 2px dashed @accent2;} th {border: 1px solid @bkg2; color: @text; background: @accent2; text-align: center;} td {border: 1px solid @accent2; background: @bkg1; color: @text; text-align: center} .tabbed_interface {background: @bkg2; border: none; & > ul{background: @bkg1; border: 1px solid @accent2; & > li{background: @bkg2; border: 1px solid @accent2; padding: 0%; border: 1px solid @accent2; color: @text; &.tab-active{background: @accent1}} & > li:hover{cursor: pointer;}} > .tab, > .tab-active{background: @accent2; color: @text; padding: 0%;}}[/style][
Might be because of spacing because when I tested Code without doing any changes with no spacing etc it pushed tab up a bit please say if this is what you was looking for:
  • First Tab
  • Second Tab
  • Third Tab
First Tab Text
Second Tab Text
Third Tab Text

If so here's the full code:

[sc=template][sc=tabbed_interface horizontal][ ][ul][ ][li]First Tab[/li][ ][li]Second Tab[/li][ ][li]Third Tab[/li][ ][/ul][ ][sc=tab-active]First Tab Text[/sc][ ][sc=tab]Second Tab Text[/sc][ ][sc=tab]Third Tab Text[/sc][ ][/sc] [/sc] [style] //colors// @bkg1: #aace9c; @bkg2: #529873; @text: #dfeeeb; @accent1: #6dcb99; @accent2: #00524c; //Code// .template{ background: @bkg2; border: 2px dashed @accent2; border-radius: 5px; font-size: 10pt; color: @text; padding: 1%; b,u,i {color: @text;} hr {border: 0px; width: 100%;} a, a:visited { color: @accent1; letter-spacing: 1px; trasition: all 5s; } a:hover {color: @accent2; letter-spacing: 4px; transition: all 500ms;} } div.tooltip_content {background: @text ; color: @bkg2; border: 2px dotted @accent2;} .bbcode_tooltip {border-bottom: 0px;} .panel {background: @bkg2; border: 1px dotted @accent2; color: @bkg2; &> h3 { > a {color: @accent2;} border: 1px solid @accent2; background: @bkg1; color: @text;} &> div {color: @text;a:link, a:visited {color: @text;}}} table {border: 2px dashed @accent2;} th {border: 1px solid @bkg2; color: @text; background: @accent2; text-align: center;} td {border: 1px solid @accent2; background: @bkg1; color: @text; text-align: center} .tabbed_interface {background: @bkg2; border: none; & > ul{background: @bkg1; border: 1px solid @accent2; & > li{background: @bkg2; border: 1px solid @accent2; padding: 0%; border: 1px solid @accent2; color: @text; &.tab-active{background: @accent1}} & > li:hover{cursor: pointer;}} > .tab, > .tab-active{background: @accent2; color: @text; padding: 0%;}}[/style]
  • First Tab
  • Second Tab
  • Credit
Feel free to talk to me on these: Chicken Smoothie: Greenbunny1998 Discord: Greenbunny1998 #8985
Code made by Greenbunny1998 Forum Signature Picture is of my cat Coco as a kitten Profile Picture is of my cat Coco
NoxianGayce's AvatarNoxianGayce
NoxianGayce's Avatar

QUOTE originally posted by Greenbunny1998

snippy
Yes that is ty
You're welcome :D
You know how progress bars are automatically center-aligned? Does anybody know how to get rid of that?
Star | She/Her | Psychopath
BORED TO DEATH!!
Collecting
x 500 x 500
Sells a variety of things!
Credits
Full credits here. PFP => Salty_Lightning on Pinterest Button => Kaelwolfur
pkspsapphire's Avatarpkspsapphire
pkspsapphire's Avatar

QUOTE originally posted by ShootingStarRain

You know how progress bars are automatically center-aligned? Does anybody know how to get rid of that?
you could do it by setting the display to inline-block! though if theres a better way to do it i wouldnt know, sorry haha
3/4

code

[style] .expbar {width:75%;display:inline-block;} [/style]
  • 🪪
  • 📋
  • 🔗

sapphire/they/23

Tournament Token (Ruby)

Tournament Token (Ruby)

Event Item

(: 0)

[LEGACY] A token earned from Weekly Tournaments Season 10 but it is too old to be valid.

Legacy items are old items that no longer serve a purpose and are only good for collecting.

Sells for 10,000

Lv. 100 — +4,380,288
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:
Dry food
FireFighting
Happiness MAX
Quiet nature
445 eggs
Score: 0
credits

credits

Pages: 123··· 2627282930

Cannot post: Please log in to post

© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page