Home
CSS
CSS Borders
Border Shorthand
Tryit: The border-left property
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> p { border-left: 6px solid red; background-color: lightgrey; } </style> </head> <body> <h2>The border-left Property</h2> <p>This property is a shorthand property for border-left-width, border-left-style, and border-left-color.</p> </body> </html>