Tematy: styl wykazu | obraz jako marker | pozycja markera | atrybuty mieszane
Dane w pigułce | |
Zastosowanie | określa typ markera (punktora) wykazu |
Dziedziczenie | tak |
Wartości | disc, circle, square decimal, decimal-leading-zero, lower-roman, upper-roman, lower-latin, lower-alpha, upper-latin, upper-alpha, lower-greek, georgian, armenian, hebrew |
Wartość domyślna | disc |
Przykład | list-style-type: square |
Uwagi | |
Odpowiednik w HTML | atrybut type |
Aby zdefiniować typ stylu wykazu, należy wpisać w definicji stylu list-style-type: wartość
Punkty wykazu mogą być na wiele sposobów wyróżniane markerami (punktorami):
<ul style="list-style-type: disc">
<li>pierwszy punkt
<li>drugi punkt
<li>trzeci punkt
</ul>
list-style-type: circle
list-style-type: square
list-style-type: decimal
list-style-type: lower-roman
list-style-type: upper-roman
list-style-type: lower-alpha
list-style-type: upper-alpha
list-style-type: none
Nowsze wersje Mozilli i Opery obsługują niektóre wartości z przewidzianych list-style-type, jak decimal-leading-zero (wiodące zero, np. 01, 02, 03...), lower-greek, lower-latin, upper-latin, cjk-ideographic, hiragana, katakana, hiragana-iroha, katakana-iroha, armenian, georgian, hebrew. Internet Explorer 6 podstawia konsekwentnie standardową wartość disc.
list-style-type: decimal-leading-zero (Mozilla, Opera)
list-style-type: lower-greek (Mozilla, Opera)
list-style-type: upper-greek
list-style-type: lower-latin (Mozilla, Opera)
list-style-type: upper-latin (Mozilla, Opera)
list-style-type: cjk-ideographic (Mozilla)
list-style-type: hiragana (Mozilla)
list-style-type: katakana (Mozilla)
list-style-type: hiragana-iroha (Mozilla)
list-style-type: katakana-iroha (Mozilla)
list-style-type: armenian (Mozilla, Opera)
list-style-type: georgian (Mozilla, Opera)
list-style-type: hebrew (Mozilla)