45 points

I refuse to believe that’s CSS. What is that colon at the end even?

permalink
report
reply
33 points

It’s a typo. The colon should be a semicolon. But since it’s the last declaration, it’s optional.

permalink
report
parent
reply
18 points

I don’t think bottom is a valid value for the position property either.

permalink
report
parent
reply
27 points

Yep, and align isn’t a real property, either.

permalink
report
parent
reply
6 points

And yet someone on the internet would unsarcastically comment that just adding flex-box would fix it.

permalink
report
parent
reply
10 points

It’ll just get ignored. I saw a fucking padding: 0.0.3rem at work today, and it just broke the one class.

permalink
report
parent
reply
29 points

came to hate on this code; it’s not valid lol

permalink
report
reply
2 points

Probably on purpose.

permalink
report
parent
reply
1 point

oh 100%

permalink
report
parent
reply
25 points
*
#moustache {
  position: absolute;
  bottom: 10px;
  margin: 0 auto;
}

If that doesn’t work:

#moustache {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

Relative positioning is preferred but not always available if the parent face is positioned absolutely.

Edit: adjusted bottom from 0 -> 10px since 0 would be at the bottom of the chin but there is obviously some padding to bring it nearer the lip

permalink
report
reply
3 points

I came here to post this and I wouldn’t have clogged up the thread with this useless comment except for your username. I salute you

permalink
report
parent
reply
20 points
*

Moustache seems generic for an id, maybe you meant to apply as .moustache? Let’s keep things consistent please

Edit: center also seems unnecessary, in the beta moustaches are already aligned as a child of .facial-hair

permalink
report
reply
4 points

Hahaha. First true boisterous laugh of the day. Thanks!

permalink
report
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 3.6K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments