all 16 comments

sorted by: hot top controversial new old
[–] 45 points 2 years ago (2 children)

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

  • source
  • hideshow 4 child comments
  • [–] 33 points 2 years ago (1 child)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 18 points 2 years ago (2 children)

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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 29 points 2 years ago (1 child)

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

  • source
  • hideshow 2 child comments
  • [–] 25 points 2 years ago* (1 child)
    #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

  • source
  • hideshow 2 child comments
  • [–] 20 points 2 years ago* (last edited 2 years 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

  • source
  • [–] 4 points 2 years ago

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

  • source
  • [–] 3 points 2 years 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.

  • source
  • [–] 1 point 2 years ago