Wednesday, November 21, 2012

Css Outlines

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>

No comments:

Post a Comment