
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Set marker inside of the box containing the bullet points with CSS
To set marker inside of the box containing the bullet points, use the list-style-position property with the value inside.
The inside value means if the text goes onto a second line, the text will wrap underneath the marker. It will also appear indented to where the text would have started if the list had a value of outside.
Example
<html> <head> </head> <body> <ul style = "list-style-type:square;list-style-position:inside;"> <li>Maths</li> <li>Social Science</li> <li>Physics</li> </ul> <ol style = "list-style-type:lower-alpha;list-style-position:inside;"> <li>Maths</li> <li>Social Science</li> <li>Physics</li> </ol> </body> </html>
- Related Articles
- Set marker outside 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 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 set the position of the list-item marker with JavaScript?
- How to Create a Comment Box with a Containing Text Using CSS
- A bullet hits a Sand box with a velocity of $20\ m/s$ and penetrates it up to a distance of $6\ cm$. Find the deceleration of the bullet in the sand box.

Advertisements