YoorWeb@lemmy.world to Programmer Humor@lemmy.ml · 7 months agoCSS Humormessage-squaremessage-square15fedilinkarrow-up1261arrow-down114file-text
arrow-up1247arrow-down1message-squareCSS HumorYoorWeb@lemmy.world to Programmer Humor@lemmy.ml · 7 months agomessage-square15fedilinkfile-text
minus-squareCaptain Janeway@lemmy.worldlinkfedilinkarrow-up26arrow-down1·edit-27 months 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
minus-squareensignrolaren@lemmy.worldlinkfedilinkarrow-up3·7 months agoI 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
#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
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