- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set marker outside of the box containing the bullet points with CSS
To set marker outside of the box containing the bullet points, use the list-style-position property with the value outside.
Example
The outside value means if the text goes onto a second line, the text will be aligned with the start of the first line
<html> <head> </head> <body> <ul style = "list-style-type:circle; list-style-position:outside;"> <li>Maths</li> <li>Social Science</li> <li>Physics</li> </ul> <ol style = "list-style-type:decimal;list-style-position:outside;"> <li>Maths</li> <li>Social Science</li> <li>Physics</li> </ol> </body> </html>
- Related Articles
- Set marker inside of the box containing the bullet points with CSS
- How to indicate whether the marker should appear inside or outside of the box containing the bullet points with CSS?
- Change Bullet Color for Lists with ::marker CSS Selector
- Set whether a punctuation character may be placed outside the line box with CSS
- Set the distance between the marker and the text relating to that marker with CSS
- Set the height of a box with CSS
- Set the width of a box with CSS
- Set image for bullet style with CSS
- Set the maximum height that a box can be with CSS
- Set the minimum height that a box can be with CSS
- Set the maximum width that a box can be with CSS
- Set the minimum width that a box can be with CSS
- How to control the shape or appearance of the marker with CSS?
- How to Create a Comment Box with a Containing Text Using CSS
- How to set the position of the list-item marker with JavaScript?

Advertisements