japangreg
11-04-2002, 03:39 PM
Hey, everyone. I have a page which uses JavaScript to toggle the display property of a DIV.
Within these DIVs I have lists, which I have used the list-style-image property to add an image in the place of the bullets. I have a heading above the invisible DIVs that toggles their display property.
My problem is as follows: When the display of these DIVs is set to none, all is well. The headings line up nicely and function properly. The problem occurs when I toggle the DIVs visibility and the lists are displayed.
The white space surrounding the lists is enormous; I have attempted to compensate for this using the margin property set to negative values, but I get inconsistent results between IE and NS (IE looks great, but NS sucks the top list element into the heading) I think it might have something to do with the fact I use line breaks between the headings.
Do DIV tags add their own line breaks? If so, what would be the best solution to add line breaks between the headings so that they don't add useless space to the displayed DIVs?
Any help is appreciated! :)
japangreg
Within these DIVs I have lists, which I have used the list-style-image property to add an image in the place of the bullets. I have a heading above the invisible DIVs that toggles their display property.
My problem is as follows: When the display of these DIVs is set to none, all is well. The headings line up nicely and function properly. The problem occurs when I toggle the DIVs visibility and the lists are displayed.
The white space surrounding the lists is enormous; I have attempted to compensate for this using the margin property set to negative values, but I get inconsistent results between IE and NS (IE looks great, but NS sucks the top list element into the heading) I think it might have something to do with the fact I use line breaks between the headings.
Do DIV tags add their own line breaks? If so, what would be the best solution to add line breaks between the headings so that they don't add useless space to the displayed DIVs?
Any help is appreciated! :)
japangreg