Jump to content

How to remove whitespace after/inside <div>?


pstein
 Share

Recommended Posts

Assume the following code:

<div class="foobar">
"whitespace"
<p>....</p>
</div> 

"whitespace" is not the text but a whitespace as indicated in Firefox WebDeveloper.

How can I get rid of every whitespace inside after a <div class=foobar"> and the first <p> with Javascript?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...