andrico1234 / css-triggers-11ty

Learn to write more performant CSS with this remake of the OG CSS Triggers site
https://css-triggers.com
MIT License
6 stars 0 forks source link

Page heading goes outside of viewport on hover #2

Closed Vallek closed 1 month ago

Vallek commented 1 month ago

You can remove width 100%, and do left: 50%, translateX -50%. That is if you have to use position absolute there)

andrico1234 commented 1 month ago

Thanks for flagging, I'm pushing the change now