Advertisement
here2share

HTML border color

Aug 13th, 2016
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.66 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. p.one {
  6.     border-style: solid;
  7.     border-color: red;
  8. }
  9.  
  10. p.two {
  11.     border-style: solid;
  12.     border-color: blue orange;
  13. }
  14.  
  15. p.three {
  16.     border-style: solid;
  17.     border-color: green red blue yellow;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22.  
  23. <h2>The border-color Property</h2>
  24. <p>This property specifies the color of the four borders:</p>
  25.  
  26. <p class="one">A solid red border</p>
  27. <p class="two">A dual color border</p>
  28. <p class="three">A solid multicolor border</p>
  29. <p><b>Note:</b> The "border-color" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p>
  30.  
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement