An outline is a line that is drawn around elements, outside the border edge, to make the element “standout”;
The outline properties specifies the style, color and width of an outline.
outline
outline-color
outline-style
outline-width
Try out an example:
<head>
<style type=”text/css”>
#container {
width:500px;
background-color:blue;
outline:1px;
outline-color:red;
}
</style>
<body>
<div id=”container”>
This is a container with outline.
</div>
</body>
The outline properties specifies the style, color and width of an outline.
outline
outline-color
outline-style
outline-width
Try out an example:
<head>
<style type=”text/css”>
#container {
width:500px;
background-color:blue;
outline:1px;
outline-color:red;
}
</style>
<body>
<div id=”container”>
This is a container with outline.
</div>
</body>
Comments
Post a Comment