CSS Properties: How to specify that the list-item markers should appear inside the content flow
Solution:
HTML Code:
Explanation:
- This HTML document demonstrates how to specify the position of list-item markers.
- CSS comments are added to explain each section of the code.
- Two sets of list styles are defined, one for inside and one for outside the content flow.
- The ul.x selector targets unordered lists with class 'x', while ul.y targets lists with class 'y'.
- list-style-position: inside; specifies that the list-item markers should appear inside the content flow for the list with class 'x'.• list-style-position: outside; specifies that the list-item markers should appear outside the content flow for the list with class 'y'.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.