0

I'm trying to 'undo' the style in an unnumbered list by putting an inline style statement in the 'li' tags. I have everything looking the way I want except that I'm missing the bullet.

Below is the original CSS and my inline style options to overwrite them:

#account_header li {
    border-bottom: 1px solid #888888;
    border-top: 1px solid #888888;
    display: inline;
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    padding: 0 10px 0 0;
    color: #AA2222;
    font-family: "arial","helvetica";
    font-size: 16px;
    font-weight: bolder;
}

Here's what I have inside my 'li' tag:

<li style="border: none;display: block;margin: 0;overflow: hidden;padding: 0;list-style:disc outside none;">

Thanks in advance...I've wasted plenty of time on this already!

  • Yes (sorry I wasn't too clear)...how do I get my bullets back? I thought the "list-style:disc outside none;" would have done it. The bullets don't show up at all. – ThorInSuburbia May 09 '12 at 16:15
  • 1
    Oh, hmm, it would seem that your zero margin and padding are causing your bullet to be hidden because it's `outside`. – BoltClock May 09 '12 at 16:26
  • BoltClock is right. You should set the margins back to what they would have been without the original stylesheet! To see what the defaults are, create a new HTML file without any styles, and inspect the ul and li elements. – Mr Lister May 09 '12 at 16:36
  • It turned out to be the overflow-* options. I'll explain as soon as it will let me. – ThorInSuburbia May 09 '12 at 18:30

2 Answers2

1

Remove display: block; and overflow: hidden; from your inline CSS and it will work.

Libin
  • 2,442
  • 3
  • 20
  • 31