Home | Computer Science

<
CSS Outline-Width Color

Defination

The outline-color CSS property sets the color of an element's outline.
The CSS outline-width property sets the thickness of an element's outline.


WIDTH COLOR Syntax of width/color is
p {
outline-width/color: 10px/red ;
}
Some information
In the above Program slash is used to tell that each of both word is used to tell syntax of both in one only
Program
INPUT

<html> <head> <style> p { outline-width:20px; outline-style: solid; outline-color: red; } </style> </head> <body> <p>A solid red outline.</p> </body> </html>

OUTPUT