开发者

OL outside of DIV

开发者 https://www.devze.com 2023-02-21 15:44 出处:网络
Im trying to create an OL but for some reason, which is probably very basic, this OL doesnt appear within the Blue Div.Why is开发者_开发百科 that?

Im trying to create an OL but for some reason, which is probably very basic, this OL doesnt appear within the Blue Div. Why is开发者_开发百科 that?

http://jsfiddle.net/NinjaSk8ter/6AkFR/


In order to have the numbering on the ol:

ol {
    padding-left: 0.5em;
}

ol li {
    list-style-type: decimal; /* or 'decimal-leading-zero', 'upper-alpha', 'lower-alpha'... */
    list-style-position: outside; /* or 'inside' */
    margin-left: 1em; /* gives 'room' for the numbers to appear in */
}

JS Fiddle.


Uncheck the "Normalized CSS" checkbox in jsFiddle....

Live demo: http://jsfiddle.net/6AkFR/1/

0

精彩评论

暂无评论...
验证码 换一张
取 消