<html> <head> <style type="text/css"> p.one { border-style: solid; border-left-width: 15px } p.two { border-style: solid; border-left-width: thin } </style> </head> <body> <p class="one"><b>Note:</b> The "border-left-width" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p> <p class="two">Some text. Some more text.</p> </body> </html>
Your Result:
Edit the code above and click to see the result.
W3Schools.com
- Try it yourself