this post was submitted on 11 Aug 2025
560 points (99.5% liked)

Programmer Humor

25894 readers
698 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 17 comments
sorted by: hot top controversial new old
[–] shovingleopardnsfw@lemmynsfw.com 32 points 1 week ago (3 children)

Sadly

position: top;

is not valid css. It should say

position: absolute;
bottom: 0px;

Still funny though.

[–] shovingleopardnsfw@lemmynsfw.com 17 points 1 week ago (1 children)

Ah, the author fixed it. Good job.

[–] hemmes@lemmy.world 2 points 1 week ago

Thank God, that would’ve eaten me alive

[–] some_guy@lemmy.sdf.org 4 points 1 week ago

You design people and your pedantry. > /dev/null for you.

Jk, you're fine.

[–] anguo@piefed.ca 1 points 1 week ago

The px is making me eyes itch.

[–] Michal@programming.dev 21 points 1 week ago

If you trim that bush, it'll seem larger

[–] who@feddit.org 18 points 1 week ago (1 children)
[–] some_guy@lemmy.sdf.org 5 points 1 week ago

Came to say the same. I've never taken it so literally.

[–] yetAnotherUser@lemmy.ca 7 points 1 week ago (2 children)

Why is .tree's position relative?

[–] bleistift2@sopuli.xyz 31 points 1 week ago (1 children)

Needed for the .leaves’ absolute positioning to be relative to the tree, and not relative to the universe.

[–] hemmes@lemmy.world 9 points 1 week ago

Damn, I thought you were going to take me out to dinner first

[–] BleakBluets@lemmy.world 6 points 1 week ago* (last edited 1 week ago)

It's so the position: absolute for .leaves works relative to .tree. The implication is that .leaves is a descendant of .tree.

position: absolute looks for the nearest ancestor with a set position in order to determine its own positioning context. Otherwise the absolute positioning would basically be relative to the viewport. If the position: relative was missing, the leaves would be against the bottom edge of the image.

source

edit: I mean .leaves, not .branch

[–] JasonMcCrea@lemmy.world 2 points 1 week ago

Saw this post about "CSS Gardening," and I'm reminded of debugging my first responsive website. Did anyone else spend hours wrestling with margins and padding, only to realize it was a typo in the media query? I did! Now I meticulously check my syntax.

[–] NichEherVielleicht@feddit.org 2 points 1 week ago (2 children)

Okay, nun weiß ich wie man Scharmbehaarung programmiert....

[–] bleistift2@sopuli.xyz 7 points 1 week ago

Das ist nicht _iel.