wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes How to Remove Empty White Space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to Remove Empty White Space" Watch "How to Remove Empty White Space" New topic
Author

How to Remove Empty White Space

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1466
    
    1
When the following code is displayed on the page there is a space between the Type in Search Text... and the input prompt. When I use the IE tool to examine the HTML code there is a line Text - Empty Text Node. How can I get rid of this extra space?

Example:

Type in Search Text...

..
"input prompt(text box)"

Andre Fonseca
Greenhorn

Joined: Jan 08, 2010
Posts: 6
Steve Dyke wrote:When the following code is displayed on the page there is a space between the Type in Search Text... and the input prompt. When I use the IE tool to examine the HTML code there is a line Text - Empty Text Node. How can I get rid of this extra space?

Example:

Type in Search Text...

..
"input prompt(text box)"



Hi Steve,

Take a look in the links below, hope it helps

http://www.w3.org/People/Raggett/tidy/

http://tidy.sourceforge.net/
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
If it is not css padding/margins than it could be as simple as changing the mark-up so it has no returns/whitespace between the tags.

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to Remove Empty White Space