Jay Zhang Posted January 8 Share Posted January 8 Hi. In the following demo, I created a large text that moves to the right of the page. The intended thing I want is for the text to simply clip off at the boundaries of the web page. Currently, it moves past the "100vw" boundary of the web page and induces x-scrolling. Is there a way to prevent this from happening? See the Pen ExMyxNX by Jay-Zhang-the-sasster (@Jay-Zhang-the-sasster) on CodePen Link to comment Share on other sites More sharing options...
Solution Carl Posted January 8 Solution Share Posted January 8 Thanks for the demo. Try setting body { overflow-x: hidden; } Or you can put your <p> element in a wrapper div that has the same css. See the Pen qBvNdWd by snorkltv (@snorkltv) on CodePen 4 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