This example demonstrates how to set the color of an outline.
HTML file: | Displayed by browser: |
---|---|
<style>
p { border: 1px solid red; outline-style: dotted; outline-color: #00ff00; } </style> <body> <p>A red border with a dotted green outline.</p> </body> |
A red border with a dotted green outline. |
Note: IE8 supports the outline properties only if a !DOCTYPE is specified.