outline özelliği, şunun için kısa bir özelliktir: aşağıdaki bireysel anahat özelliklerini ayarlama:
outline-widthoutline-styleoutline-coloroutline-style gerekli.
outline özelliği bir olarak belirtilir, yukarıdaki listeden iki veya üç değer. Değerlerin sırası değil konu.
Aşağıdaki örnekte anahat kısaltmasıyla belirtilen bazı ana hatlar gösterilmektedir mülk:
A dashed outline.
A dotted red outline.
A 5px solid yellow outline.
A thick ridge pink outline.
p.ex1
{outline: dashed;}
p.ex2
{outline: dotted red;}
p.ex3
{outline: 5px solid yellow;}
p.ex4
{outline: thick ridge pink;}Kendiniz Deneyin →
<!DOCTYPE html>
<html>
<head>
<style>
p.ex1 {outline: dashed;}
p.ex2 {outline: dotted red;}
p.ex3 {outline: 5px solid yellow;}
p.ex4 {outline: thick ridge pink;}
</style>
</head>
<body>
<h2>The outline Property</h2>
<p class="ex1">A dashed outline.</p>
<p class="ex2">A dotted red outline.</p>
<p class="ex3">A 5px solid yellow outline.</p>
<p class="ex4">A thick ridge pink outline.</p>
</body>
</html>