CSS List Style Position

The Web Book

Outside Position

Inside Position


CSS List Style Position Example Code

HTML CODE ................................................................................. <!DOCTYPE html> <html> <body> <ul class="c1"> <li>Accountancy: ABC Global Consulting provides accountancy services...</li> <li>Software: We design tailor-cut desktop and web-based solutions to...</li> </ul> <ul class="c2"> <li>Accountancy: ABC Global Consulting provides accountancy services...</li> <li>Software: We design tailor-cut desktop and web-based solutions to...</li> </ul> </body> </html> CSS CODE ..................................... ul {width: 250px;} ul.c1 {list-style-position: outside;} ul.c2 {list-style-position: inside;} Back