Home
CSS
CSS Lists
Tryit: A bordered list
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 { list-style-type: none; padding: 0; border: 1px solid #ddd; } ul li { padding: 8px 16px; border-bottom: 1px solid #ddd; } ul li:last-child { border-bottom: none } </style> </head> <body> <h2>A bordered list</h2> <ul> <li>Coffee</li> <li>Tea</li> <li>Coca Cola</li> </ul> </body> </html>