FANDOM


The outline-style property is used in CSS and certain HTML elements. It specifies the linetype of the outline around the selected object, rendering each side the same as the others.


Values

  • dotted - The outline is a series of dots.


  • dashed - The outline is a series of short line segments.


  • solid - The outline is a single line.


  • double - The outline is two single lines. The outline-width is the sum of the two lines and the space between them.


  • groove - The outline looks as though it were carved into the canvas.


  • ridge - The opposite of groove. The outline looks as though it were coming out of the canvas.


  • inset - The outline makes the box look as though it were embedded in the canvas.


  • outset - The opposite of inset. The outline makes the box look as though it were coming out of the canvas.


HTML example:

<span style="outline:medium dotted white;">Outline this text</span>


CSS example:

h1 {
    outline:medium dotted white;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.