Prev Demo
CSS3
>
Border-Top-Color Property
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <style> p { border-style: solid; border-top-color: red; } div { border-style: double; border-top-color: blue; } </style> <body> <p>This element having red color border at the top side.</p> <div>This element having blue color border at the top side.</div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output