AlbertS
0
Q:

how to trim leading spaces in html using css

var str = "       Hello World!        ";
alert(str.trim());
5
var str = '/var/www/site/Brand new document.docx';

document.write( str.replace(/\s/g, '') );
0
<div style="white-space:pre-wrap"> <!-- New Line -->
   <!-- 2 space --> This is my text
</div>
-1

New to Communities?

Join the community