[CSS] weird <div> behaviour in firefox

S

SBmx

hello,

please take a look at this page:
http://odradek.net/jla/html/accordeon.html

by selecting items on the left one can expand and collapse sublists on
the right. this is very run-of-the-mill dhtml stuff: the links on the
left change the display property of the <div>'s in which the lists are
nested.

it works fine on most browsers, but in firefox some of the list <div>'s
do not cause the table cells in which they are embedded to expand the
way they should, thus causing ugly overlaps. the layers with this
erratic behaviour are always different ones, sometimes it's only one of
them, sometimes three, sometimes all...

this apparent randomness leads me to believe that it must be some kind
of bug or bad implementation in firefox, but i couldn't find any
documentation on this.

anyone have suggestions, workarounds or fixes?

thanx

sbmx
 
E

Els

SBmx said:
http://odradek.net/jla/html/accordeon.html

by selecting items on the left one can expand and collapse sublists on
the right. this is very run-of-the-mill dhtml stuff: the links on the
left change the display property of the <div>'s in which the lists are
nested.

it works fine on most browsers, but in firefox some of the list <div>'s
do not cause the table cells in which they are embedded to expand the
way they should, thus causing ugly overlaps. the layers with this
erratic behaviour are always different ones, sometimes it's only one of
them, sometimes three, sometimes all...

this apparent randomness leads me to believe that it must be some kind
of bug or bad implementation in firefox, but i couldn't find any
documentation on this.

anyone have suggestions, workarounds or fixes?

AFAICS it works fine in my version of Firefox (1.5.0.7 on WinXP)
 
D

David Woods

SBmx said:
hello,

please take a look at this page:
http://odradek.net/jla/html/accordeon.html

by selecting items on the left one can expand and collapse sublists on
the right. this is very run-of-the-mill dhtml stuff: the links on the
left change the display property of the <div>'s in which the lists are
nested.

it works fine on most browsers, but in firefox some of the list <div>'s
do not cause the table cells in which they are embedded to expand the
way they should, thus causing ugly overlaps. the layers with this
erratic behaviour are always different ones, sometimes it's only one of
them, sometimes three, sometimes all...

this apparent randomness leads me to believe that it must be some kind
of bug or bad implementation in firefox, but i couldn't find any
documentation on this.

The problem, I believe, is with your JavaScript on the Solo/Small Ensemble
link. It fails to close/hide/whatever the contents of links below it that
have been previously opened.
 
J

Jonathan N. Little

David said:
The problem, I believe, is with your JavaScript on the Solo/Small Ensemble
link. It fails to close/hide/whatever the contents of links below it that
have been previously opened.

No it is the one above that is the problem. All others expand the left
column to match the right when expanded. But the first, ORCHESTRA, does
not so when any of the sections below are expanded it overwrites ORCHESTRA
 
J

Jonathan N. Little

Jonathan said:
No it is the one above that is the problem. All others expand the left
column to match the right when expanded. But the first, ORCHESTRA, does
not so when any of the sections below are expanded it overwrites ORCHESTRA

Actually that was with SeaMonkey so akin to Firefox 1.5.0.7, but with
Firefox 2.0 I get the above problem on different sections, "SOLO / SMALL
ENSEMBLE" and "VOCAL / CHORAL"! I suspect you have some markup errors.
Yep I see a couple.

Line 76 & 77

</tr>
</tr>

two closing TRs???

BTW the HTML element cannot have a STYLE attribute:
http://www.w3.org/TR/html4/struct/global.html#edef-HTML
 
S

SBmx

The problem, I believe, is with your JavaScript on the Solo/Small
Ensemble
column to match the right when expanded. But the first, ORCHESTRA, does
not so when any of the sections below are expanded it overwrites ORCHESTRA

like i said, the problem appears on other lists everytime i reload the
page. apparently completely at random.

sbmx
 
J

Jonathan N. Little

SBmx said:
like i said, the problem appears on other lists everytime i reload the
page. apparently completely at random.

Did you fix your markup errors? I pointed out one on Line 77 you have an
extra </tr>. If you throw invalid markup at a browser is will be
unpredictable in its presentation as it tries to "make sense" of the
antiquity.
 
J

Jonathan N. Little

Jonathan said:
Did you fix your markup errors? I pointed out one on Line 77 you have an
extra </tr>. If you throw invalid markup at a browser is will be
unpredictable in its presentation as it tries to "make sense" of the
antiquity.
Let's try the correct work shall we! "ambiguity" !!!
 
D

dorayme

"Jonathan N. Little said:
Did you fix your markup errors? I pointed out one on Line 77 you have an
extra </tr>. If you throw invalid markup at a browser is will be
unpredictable in its presentation as it tries to "make sense" of the
antiquity.

The antiquity!
 
J

Jonathan N. Little

dorayme said:
The antiquity!
That's what I get for using spell-checker and dashing it off before
*really* proofing. Damn my cursed spelling handicap, I am doomed,
doomed, doooooomed I say!
 
S

SBmx

Did you fix your markup errors? I pointed out one on Line 77 you have an
extra </tr>. If you throw invalid markup at a browser is will be
unpredictable in its presentation as it tries to "make sense" of the
antiquity.

you were right of course, after cleaning up the page and making sure
everything validates properly the problem seems to be solved ...

thanks a K!

..sbmx
 
J

Jonathan N. Little

SBmx said:
Did you fix your markup errors? I pointed out one on Line 77 you have an
extra </tr>. If you throw invalid markup at a browser is will be
unpredictable in its presentation as it tries to "make sense" of the
antiquity.[ambiguity] sp.

you were right of course, after cleaning up the page and making sure
everything validates properly the problem seems to be solved ...

Yes if you find yourself with a transient presentation anomaly, start
digging for a markup error! It is one of the reasons is still keep a
copy of Netscape 4.6 installed, it a miserable CSS support but it sure
can signal a markup error! No real attempt to "interpret", it just bombs!
 
D

dorayme

"Jonathan N. Little said:
Yes if you find yourself with a transient presentation anomaly, start
digging for a markup error! It is one of the reasons is still keep a
copy of Netscape 4.6 installed, it a miserable CSS support but it sure
can signal a markup error! No real attempt to "interpret", it just bombs!

Safari is a bit like this in that it is not very fault tolerant.
iCab is marvelous in having the little face which only smiles on
the truly valid, the mensch of the webpage world...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top