Home
CSS
CSS Lists
Tryit: List with a red left border
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> ul { border-left: 5px solid red; background-color: #f1f1f1; list-style-type: none; padding: 10px 20px; } </style> </head> <body> <h2>List with a red left border</h2> <ul> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ul> </body> </html>