Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing <li> circles in my unordered list

Tags:

css

jsfiddle

I have the following code:

<div class="fp1">
    <div class="col">
      <div class="img" id="img1"></div>
                        <ul>
                        <li><span>Test </span></li>
                        <li><span>Test </span></li>        
                        <li><span>Test </span></li>
                        </ul>
      </div>
</div>

.fp1 .row   { overflow: hidden;  }
.fp1 .img   { display: inline-block; float: left; width:105px; height:80px; margin:25px 0 10px 0;
    background: yellow; no-repeat scroll 0 0 transparent; }

.fp1 .col   { float: left; width:50%; margin:0px; }
.fp1 .col ul      { margin:15px 20px 0 0; padding-left: 25px; font-size: 1.2em}
.fp1 .col ul span { color:#222; font-size: 0.85em; }
.fp1 .col ul li   { line-height:15px; }

I created a fiddle

What I don't understand is why are the small circles that should appear to the left of the "li" missing?

Any help would be appreciated

like image 480
UCC Avatar asked Jun 04 '11 06:06

UCC


People also ask

Which attribute is used to show an filled circle as a bullet in unordered list?

We use <li> tag to start list of items. The list of items can be marked as bullets, square, disc and circle. By default, the list items in the context marked with the bullets. The <li> tag should be placed inside the <ul> tag to create the list of items.

How to create an unordered list?

You create an unordered list using the ul tag. Then, you use the li tag to list each and every one of the items you want your list to include. tag. This means that the li tag is the child of the ul tag.

How do you put an unordered list on one line in HTML?

The quickest way to display a list on a single line is to give the <li> elements a display property value of inline or inline-block . Doing so places all the <li> elements within a single line, with a single space between each list item.


1 Answers

Your problem is that jsfiddle.net automatically includes a reset stylesheet (normalize.css) that includes this:

ol,ul {
    list-style:none;
}

You'll see a "Normalized CSS" checkbox in the sidebar, uncheck that and normalize.css won't be pulled in; for example:

http://jsfiddle.net/ambiguous/HQJhe/10/

That fiddle is just yours with the checkbox unchecked.

like image 113
mu is too short Avatar answered Sep 28 '22 03:09

mu is too short