LucasD Posted December 10, 2021 Share Posted December 10, 2021 When i set overflow:hidden on element other than lines on a multi-splitted element, the outer elements get a bigger height than the inner elements. What can I do to prevent this ? See the Pen YzrGZLw by lucasdemea (@lucasdemea) on CodePen Link to comment Share on other sites More sharing options...
Solution LucasD Posted December 10, 2021 Author Solution Share Posted December 10, 2021 Ok, it seems this isn't an issue related to GSAP but the way css works for inline-block elements with overflow other than visible, as read in this SO post. The solution is to set vertical-align:'top'. See the Pen zYEKwvY by lucasdemea (@lucasdemea) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now