Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CSS border-width Property</title> <style> p { border-style: solid; padding: 20px; margin: 20px; } p.one { border-width: 5px; } p.two { border-width: 5px 10px; } p.three { border-width: 5px 10px 15px; } p.four { border-width: medium 10px thick 15px; } </style> </head> <body> <p class="one"><strong>one-value syntax:</strong> the single value sets the width of all four border sides.</p> <p class="two"><strong>two-value syntax:</strong> the first value sets the width of the top and bottom border, while the second value sets the width of the right and left sides border.</p> <p class="three"><strong>three-value syntax:</strong> the first value sets the width of the top border, the second value sets the width of the right and left border, and the third value sets the width of the the bottom border.</p> <p class="four"><strong>four-value syntax:</strong> each value sets the width of the border individually in the order top, right, bottom, and left.</p> </body> </html>