We can also change the position of the bullet: inside or outside. The default is outside - as illustrated below with this unordered list:
- Here is the default bullet position
- Multiple lines will line up neatly underneath each other as shown. (If necessary, narrow your browser window until the line wraps.)
- After creating your list, edit the UL tag to include the code in the next bullet
- <ul style="list-style-position: inside;">
- However, be aware that when using the inside position, any text that wraps will flow underneath the bullet as shown. You may or may not like the way this looks.
- <ol style="list-style-position: inside;">
- But just like an unordered list, lengthy text will flow underneath the bullet as shown. (Narrow your browser window if necessary.)
- Just type the UL tag exactly as below.
- <ul style="list-style-type: square; list-style-position: inside;">
- Just type the OL tag exactly as below.
- <ol style="list-style-type: upper-roman; list-style-position: inside;">
► Check out some of our other posts about styling bullets: How to Change the Bullet Style of your Ordered List and How to Change the Bullet Style of your Unordered List
If this post has been helpful, please consider linking to our blog or sharing!
No comments:
Post a Comment