• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

white-space nowrap and DOCTYPE

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic