CSS outline is just like CSS border property. It is a line that is drawn around elements, outside the borders, to make the element "stand out".
CSS outline is just like CSS border property. It is a line that is drawn around elements, outside the borders, to make the element "stand out".
See this example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example of CSS Outline</title>
<style>
p.outline {
width:20em;
background-color:green;
border: 3px solid red;
color:#fff;
outline:5px solid blue;
padding:10px;
}
</style>
</head>
<body>
<p class="outline">Welcome to nexladder.com</p>
</body>
</html>