Share Posted June 13, 2021 Hi! Here is a problem. This block moves down because text has 30% width and it has two lines. But script loads faster than text goes on the second line and the block moves down. I can't use <br/> because on mobile it will be other. How to fix it? See the Pen qBrQXVY by makssshow (@makssshow) on CodePen Link to comment Share on other sites More sharing options...
Share Posted June 13, 2021 What if you get rid of the top and bottom margin? Link to comment Share on other sites More sharing options...
Author Share Posted June 13, 2021 4 minutes ago, OSUblake said: top and bottom margin There is no bottom margin. It doesn't help. The problem is in the number of lines Link to comment Share on other sites More sharing options...
Share Posted June 14, 2021 Does this not fix the issue? See the Pen MWpzOmM by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Author Share Posted June 14, 2021 6 hours ago, OSUblake said: Does this not fix the issue? No, it is still broken( Link to comment Share on other sites More sharing options...
Solution Author Solution Share Posted June 15, 2021 I fixed it by using default font with letters size like in the custom. The problem was in the font. Next line started because the custom font has big letter size and it loades latter then js. 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