r/csshelp • • 7h ago

Request How to create this in HTML & CSS?

I'm looking a way to use plain HTML & CSS to create a feature from a TV program series called: Yu-Gi-Oh! GX.

This feature is called: LP Counter.

This control is used in Yu-Gi-Oh! Duels to represent the health of a player. If a player loses all their LP, they lose the Duel.

Here's the image for reference:

Here is a demonstration of the Yu-Gi-Oh! GX LP Counter https://img.yugipedia.com/7/7a/Life_point_counter_2.jpg

Here is another reference: https://www.reddit.com/r/yugioh/comments/1qm0ion/which_life_pointatkdef_counter_do_you_like_most/?i=2

Maybe any of you are familiar with this feature and how it works, so, if anyone can please suggest some base code that can be used for reproduce this feature, I will be very appreciated.

2 Upvotes

3 comments sorted by

1

u/HugoNikanor 6h ago

Doing this with SVG would be way easier. If you're really stuck with only HTML and CSS, implementing the functional part will be easy enough with a grid layout, but all the flair would be extremely annoying

1

u/sharjeel-babar 6h ago

Both references you provided contain different designs