By sholler on
Hi,
I've been struggling with a combination of an ordered (ol) and an unordered list (ul) in HTML.
I'm using the following demo code for the page:
demo list:
<ol>
<li>first item</li>
<li>
second item
<ul>
<li>topic</li>
<li>another topic</li>
</ul>
</li>
<li>third item</li>
</ol>
The result is that the items of the unordered lists overwrite the bullet sign.
Is this a webbrowser related problem or an error in Drupal?
Regards,
Sebastian
Comments
Code displays fine
Looks fine here. Perhaps you are using a theme with some bad CSS.
Garland theme
I'm using the "Garland" theme that comes with Drupal 6.x
Garland has this rule in
Garland has this rule in style.css, line 123
that disables the bullets and uses a graphic instead.
Bug in Garland's style.css file
I found out, that the graphical error is caused by a bug in style.css of the Garland theme:
The original CSS style sets the padding of ALL li-elements to 0, even if the li-element belongs to an unordered list inside an ordered list.
a tip...
If you use color module, don't forget to go to themes>list and "configure" your theme again else changes won't show up after you edit style.css