pstein Posted March 9, 2020 Share Posted March 9, 2020 At first lets have a look at an example webpage: https://www.thewindowsclub.com/most-useful-commands-for-powercfg-command-line As you can see the article contains some <pre> blocks which in turn contain commands lines which are NOT wrapped at the browser window end. Instead a horizontal slider is displayed which let user scroll to the currently invisible part of the command line. Now if I want to print this page (into *.png or *.pdf) important parts of these commands are NOT displayed. How can I apply some CSS/Javascript commands which tell the rendering engine to AUTOMATICALLY (soft) wrap these over-long lines at suitable blanks (!) into a second (or even third) line in <pre> block? Peter Link to comment Share on other sites More sharing options...
Ingolme Posted March 9, 2020 Share Posted March 9, 2020 You can use white-space to permit line breaks with CSS. The pre-wrap value should work for your case. 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