i've become THIS good.


i've centered an item both vertically and horizontally in CSS first try
Follow

@hj They should make positioning things in CSS like positioning sprites in a video game.

· · Web · 1 · 0 · 0

@hj Without all that necessary fluff. Every web element should have a rect structure containing x and y coordinates along with width and height. Include the ability to do mathematical operations inside CSS and you don't need all the float and align garbage.

@xianc78 @hj calc() is already a thing. Have fun making a flex layout with it

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.