aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes white-space nowrap and DOCTYPE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "white-space nowrap and DOCTYPE" Watch "white-space nowrap and DOCTYPE" New topic
Author

white-space nowrap and DOCTYPE

Grazia Lassner
Greenhorn

Joined: Apr 26, 2010
Posts: 19
I cannot get my method togglelineWrap to work on either Firefox nor IE6.
If I remove <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
things will work on IE6, but not on Firefox. Please, help, I cannot figure out what the problem is.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Which of the 400+ lines is relevant? Could you reduce the code to an example that reproduces the problem?
Grazia Lassner
Greenhorn

Joined: Apr 26, 2010
Posts: 19
The toggleLineWrap function does not work on the 'modelContent' element.
The function is supposed to wrap the long list of fieldBox elements (different sizes and look as the style css indicates) that are contained in a 'modelContent' element.

Hope this helps get to the problem.
It only works on IE if I remove <!DOCTYPE ..., it does not work on Firefox no matter what I do.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Can't make heads nor tails of your code, and you're including way too much.

In any case, have you tried using a legal ID value?

http://www.w3.org/TR/html4/types.html#h-6.2
Grazia Lassner
Greenhorn

Joined: Apr 26, 2010
Posts: 19
A colleague of mine wrote this code, but he is no longer here, and I need to make it work.
I reduced the code even further.
See the div class='modelContent' ?
Inside it, there are several div class='fieldBox'.
All those fieldBoxes would have to be displayed either on the same single line ( with whitespace='nowrap') or wrapping the line (with whitespace = 'normal').

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

David Newton wrote:In any case, have you tried using a legal ID value?

http://www.w3.org/TR/html4/types.html#h-6.2
 
wood burning stoves
 
subject: white-space nowrap and DOCTYPE