CodeLab
Tutorials For Everyone
Run
Learn CSS
<!Doctype HTML> <html> <head> <title>CSS Borders Color</title> <style> .border-1 { border-style: solid; border-color: Crimson; border-width: thick; padding: 10px; margin: 10px; text-align: center; } .border-2{ border-style: dashed; border-color: rgb(0,255,0); border-width: thick; padding: 10px; margin: 10px; text-align: center; } .border-3{ border-style: solid; border-color: #0000ff; border-width: thick; padding: 10px; margin: 10px; text-align: center; } .border-4{ border-style: solid; border-color: hsl(10,40%, 90%); border-width: thick; padding: 10px; margin: 10px; text-align: center; } .border-5{ border-style: solid; border-color: Crimson DeepSkyBlue Black Orange; border-width: thick; padding: 10px; margin: 10px; text-align: center; } </style> </head> <body> <h2>CSS Border Color</h2> We can set the colors of border by border-color property. <p class="border-1">Border color is Crimson, set by name.</p> <p class="border-2">Border color is set by rgb value and is green.</p> <p class="border-3">The border is blue and set by hex value.</p> <p class="border-4">This border is set by hsl value.</p> <p class="border-5">All different border colors</p> </body> </html>
Editor Commands
Ctrl
F
Find
Ctrl
G
Find Next
Ctrl
⇧
G
Find Previous
Ctrl
⇧
F
Find & Replace
Ctrl
]
Indent Code Right
Ctrl
[
Indent Code Left
⇧
Tab
Auto Indent Code
Ctrl
/
Line Comment
Ctrl
Alt
/
Block Comment
TutsInsider Actions
Alt
S
Run Code
Ctrl
C
Copy Editor Code
Ctrl
A
Select All Editor Code
Ctrl
S
Save/Download
Ctrl
Alt
X
Rotate
Ctrl
Alt
T
Switch Theme
Ctrl
⇧
C
Open Console
Esc
Close Console