aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1390
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: 5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Remove Empty White Space
 
Similar Threads
set values in a table from other
Close DIV Popup When it Looses Focus
Fieldset is not working
scroll bar down
JSP <a href> tags breaks page functionality