Home | Computer Science

<
CSS Outline Shorthand

Defination

To draw a line of specific style (required), thickness, and color around the borders of the element.


SHORTHAND Syntax of width/color is
p {
outline: ;
}
Correct Format is
Outline-width Outline-style Outline-color Program
INPUT

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

OUTPUT