Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>CSS border-top-color Property</title> <style> div { background: #eee; display: flex; height: 30px; margin-bottom: 10px; align-items: center; justify-content: center; border-top-width: medium; border-top-style: solid; } .border-1 { border-top-color: pink; } .border-2 { border-top-color: #888888; } .border-3 { border-top-color: rgb(255, 167, 0, 0.9); } .border-4 { border-top-color: hsl(45, 70%, 50%, 0.9); } </style> </head> <body> <div class="border-1">color name</div> <div class="border-2">HEX color code</div> <div class="border-3">RGBA: rgb(255, 167, 0, 0.9)</div> <div class="border-4">HSLA: hsl(45, 70%, 50%, 0.9)</div> </body> </html>
  Preview Arrow