![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Does anyone have a Javascript/CSS cure for the following IE symptoms thatI am witnessing with my DIV that scrolls vertically and grows horizontally to cater for the largest <li> element/row? I have had to introduce X.style.whitespace = "nowrap" to prevent the list elements from wrapping over more than one line. That is, I want the <div>to expand horizontally when a longer list element is obtained. You may recall that I'm extending the div eastwards via the following command: |
#3
| |||
| |||
|
|
Give your list items a class and start with this rule:- .mylistitem { zoom:1 } |
#4
| |||||
| |||||
|
|
Hi David, "David Mark" <dmark.cins... (AT) gmail (DOT) com> wrote in message news:109b57df-a632-4fbd-903c-9b2126a4256b (AT) p36g2000vbn (DOT) googlegroups.com... Give your list items a class and start with this rule:- .mylistitem { * *zoom:1 } I tried that but the width just blew-out big-time. |
|
I also found the "IE whitespace Bug" posts and tried the various solutions such as "marginBottom = "1px" and still no good :-( |

|
I was about to replace the whitespace="nowrap" option by using \xA0 characters, to replace spaces embedded in my options, when I realized my textNodes were being created with fixed char-length and space-filled strings. (That's how the came down the Socket) The browser was quite rightly not preserving the trailing spaces but them, combined with auto-width, a growing container, (and perhaps a proportional font) left IE scratching its head every now and then. |
|
Anyway, cut a long story short, I trimmed the strings before creating the textNodes for the list items and now everyone seems happy. |
|
Thanks again for you help and interest. |
![]() |
| Thread Tools | |
| Display Modes | |
| |