Answers for "how to trim leading spaces in html using css"

CSS
6

remove space from string javascript

var str = "       Hello World!        ";
alert(str.trim());
Posted by: Guest on March-19-2020
0

how to remove spaces from strings javascript

var str = '/var/www/site/Brand new document.docx';

document.write( str.replace(/\s/g, '') );
Posted by: Guest on May-13-2020
-1

how to trim leading spaces in html using css

<div style="white-space:pre-wrap"> <!-- New Line -->
   <!-- 2 space --> This is my text
</div>
Posted by: Guest on June-14-2020

Code answers related to "how to trim leading spaces in html using css"

Browse Popular Code Answers by Language