D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
YoorWeb@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago

CSS Humor

message-square
message-square
16
fedilink
249
message-square

CSS Humor

YoorWeb@lemmy.world to Programmer Humor@lemmy.ml · 1 year ago
message-square
16
fedilink

alert-triangle
You must log in or register to comment.
  • lurch (he/him)@sh.itjust.works
    link
    fedilink
    arrow-up
    46
    arrow-down
    1
    ·
    1 year ago

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

    • bleistift2@feddit.de
      link
      fedilink
      English
      arrow-up
      33
      ·
      1 year ago

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

      • hibsen@lemmy.world
        link
        fedilink
        arrow-up
        18
        ·
        1 year ago

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

        • bleistift2@feddit.de
          link
          fedilink
          English
          arrow-up
          27
          ·
          1 year ago

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

          • hibsen@lemmy.world
            link
            fedilink
            arrow-up
            10
            ·
            1 year ago

            How deep does this rabbit-hole go?!

        • xmunk@sh.itjust.works
          link
          fedilink
          arrow-up
          8
          arrow-down
          2
          ·
          1 year ago

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

    • micka190@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      1 year ago

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

  • (des)mosthenes@lemmy.world
    link
    fedilink
    arrow-up
    29
    ·
    1 year ago

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

    • YoorWeb@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Probably on purpose.

      • (des)mosthenes@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        oh 100%

  • Captain Janeway@lemmy.world
    link
    fedilink
    arrow-up
    26
    arrow-down
    1
    ·
    edit-2
    1 year ago
    #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

    • ensignrolaren@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      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

  • CaptDust@sh.itjust.works
    link
    fedilink
    arrow-up
    20
    ·
    edit-2
    1 year ago

    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

  • some_guy@lemmy.sdf.org
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

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

  • hakunawazo@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    1 year ago

    Just use JS and get X Y position of nose and put it a few pixel below. So it would be still valid if the nose moves.

  • MilderRichter@feddit.de
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 65 users / day
  • 532 users / week
  • 1.72K users / month
  • 10.5K users / 6 months
  • 8 local subscribers
  • 35.6K subscribers
  • 1.42K Posts
  • 21.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org