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 >

Mirzam's Avatarhypermode-12.pngMirzam
Mirzam's Avatar
helpinghand.pnghypermode.pngcomplete.pnga.png
There's a few ways to do it. You can use a table, flex box, or just set them to inline-block with a width setting.
Bar 1
Bar 2
Bar 3
Bar 4
The box sizing setting is important when using % width and margin - without it, the border adds extra width, and even 1px can make the layout behave oddly on different resolutions.

Code

[progress=1/5] Bar 1 [/progress][progress=2/5] Bar 2 [/progress][progress=3/5] Bar 3 [/progress][progress=4/5] Bar 4 [/progress] [style] .expbar { display: inline-block; width: 48%; margin: 0.3em 1%; box-sizing: border-box; } [/style]
© PokéFarm 2009-2024 (Full details)Contact | Rules | Privacy | Reviews 4.6★Get shortlink for this page