HTML DOM outlineStyle Property
Complete Style Object Reference
Definition and Usage
The outlineStyle property sets the style of the outline around an element.
Syntax
Object.style.outlineStyle=style
|
Possible Values
| Value |
Description |
| none |
Defines no outlines |
| dotted |
Defines a dotted outline |
| dashed |
Defines a dashed outline |
| solid |
Defines a solid outline |
| double |
Defines two lines around the element. The width of the
two lines are the same as the outline-width value |
| groove |
Defines a 3D grooved outline. The effect depends on the
outline-color value |
| ridge |
Defines a 3D ridged outline. The effect depends on the
outline-color value |
| inset |
Defines a 3D inset outline. The effect depends on the
outline-color value |
| outset |
Defines a 3D outset outline. The effect depends on the
outline-color value |
Example
The following example changes the style of the outline:
<html>
<head>
<style type="text/css">
p
{
border: thin solid #00FF00;
outline: thick solid #FF0000;
}
</style>
<script type="text/javascript">
function changeOutline()
{
document.getElementById("p1").style.outlineStyle="dotted";
}
</script>
</head>
<body>
<input type="button" onclick="changeOutline()"
value="Change outline style" />
<p id="p1">This is a paragraph</p>
</body>
</html>
|
Try-It-Yourself Demos
outlineStyle - Change the style of the outline around an element
Complete Style Object Reference
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|