wavebeem

world wide weirdo

ย 

๐Ÿ’• @hauntedlatte

๐Ÿ  portland, or, usa

๐Ÿ“† mid-30s

๐Ÿ’ฌ here to make friends and chat

ย 


ย 

๐ŸŽฎ video games
๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ป web development
๐Ÿ‘ฉ๐Ÿปโ€๐Ÿซ teaching others

ย 


ย 

๐ŸŽจ digital aesthetics
๐Ÿ’…๐Ÿป makeup & jewelry
๐Ÿ‘— gothic fashion
๐Ÿ‘ฉ๐Ÿปโ€๐ŸŽจ making pixel art

ย 


ย 

๐Ÿค˜๐Ÿป progressive metal
๐ŸŽธ video game music

ย 


ย 

๐ŸŸข everything green
๐ŸŒŸ neon colors and transparent plastic

ย 


blog + rss
wavebeem.com/
discord
@wavebeem

sakiamu
@sakiamu

So, I just mixed up the order of the conditional expression and the step statement in a Javascript for loop. I suppose it'd been a while, heh. Thankfully, was able to sort it out pretty quick.


trashcataria
@trashcataria

been doing web dev for a decade and i constantly have at least 5 MDN tabs open at all times.


wavebeem
@wavebeem

i still write both justify-content and align-items and just delete whichever one didn't work...

btw i would love a helpful mnemonic for remembering which is which lol


You must log in to comment.

in reply to @trashcataria's post:

in reply to @wavebeem's post:

Okay my way to remember:

Flex is left-to-right (horizontal) by default, like text. Image you want to "justify" text. So justify-content in flex regulates the axes the objects are per default on, while align-items regulates the other axes they might "snap" to top or bottom in.

TLDR: justify (like text) handles the thing on the main flex-direction axis.

Idk. Not that great of a way to remember but it's starting to work for me.

a horrifying side note: at my last job, someone made a design system where <Columns> corresponded to flex-direction:row and <Rows> corresponded to flex-direction:column, which caused so much pain and suffering my brain

oh no that left you with lasting damage

I think most people without that damage can remember it because you always have to specify if you want it column/top-to-bottom/vertical. But you don't have to specify for horizontal.