Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

white-space nowrap and DOCTYPE

 
Grazia Lassner
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the 400+ lines is relevant? Could you reduce the code to an example that reproduces the problem?
 
Grazia Lassner
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic