Chrome is now blurring text when using transform translateY with percent

前端 未结 1 1422
攒了一身酷
攒了一身酷 2021-01-15 02:50

Since a few days, I\'m experimenting a pretty big issue when using the very cool technique for vertically centering a div with css3 transform (transform: translateY(-50%); )

相关标签:
1条回答
  • 2021-01-15 03:47

    For now, I found only one good solution:

    transform: translate(-50%, -50.1%)
    
    • 0.1% - in general user can't see this
    • No need to calc value

    Hope chrome will fix it - the bug exists since 2014))))

    0 讨论(0)
提交回复
热议问题