Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

wrong numbering of elements styled with "display: list-item; list-style-type: decimal;"

  • 1 freagra
  • 5 leis an bhfadhb seo
  • 2 views
  • Freagra is déanaí ó dmuller

more options

Following code :

<style type="text/css">

div {
 display: block;
 margin-left: 2em;
}
span {
 display: list-item;
 list-style-type: decimal;
}

</style>

<div>

 <span>first</span>
 <span>second</span>
 <span>third</span>

</div>

Displays as :

0. first
0. second
0. third 

while looking fine in other browsers (checked IE7, chrome, opera, safari...)

Following code : <!DOCTYPE html> <style type="text/css"> div { display: block; margin-left: 2em; } span { display: list-item; list-style-type: decimal; } </style> &lt;div> &lt;span>first&lt;/span> &lt;span>second&lt;/span> &lt;span>third&lt;/span> &lt;/div> Displays as : 0. first 0. second 0. third while looking fine in other browsers (checked IE7, chrome, opera, safari...)

Athraithe ag dmuller ar

All Replies (1)

more options

updated code snap...

Athraithe ag dmuller ar