Click to See Complete Forum and Search --> : Bullets are not displaying


burnt1ce85
10-12-2006, 10:34 AM
I'm trying to make a small module (like a widget) that is a children of many <divs>, <tables>, etc. which may of some css declaration in a css file. I'm trying to insert a list (using <ul> <li>'s) but their bullets are not showing up by default.

I'm thinking that my list is inherting a css property from its parent that is preventing the bullets to show up. But im unaware some of the css properties that can even do that. If this is the case, what css property do i have to set in the <ul> or <li>'s to override this inherited property?

House of Haus
10-12-2006, 10:39 AM
Its hard to say without seeing your code, but the default value for ul list type is list-style-type:disc
If you put that in your <ul> tag, that will overwrite any previous style declaration.

burnt1ce85
10-12-2006, 10:46 AM
You're right. In javascript i made my ul as this ulRssList.className = document.createElement("div");

obviously, it's suppose to be ulRssList.className = document.createElement("ul");

sorry.........

Kravvitz
10-12-2006, 03:22 PM
Don't you mean this?
var ulRssList = document.createElement("ul");