Alex Rivera | Logout

Should the CSS property list-style be applied to <ul>/<ol> or <li>?

Asked 2010-03-09T12:29:33.620
42

Most sites show the syntax as applying list-style to the <li> but I've seen some tutorial sites (like this one) that apply list-style to the <ul> or <ol>.

Which is the 'correct' way?

Edit
Report

1 Answer

0

The spec recommends that you that you set it on <ul> and <ol> tags, and not on <li>.

See http://www.w3.org/TR/REC-CSS1/#list-style

answered 2012-04-10T12:01:00.370

Your Answer