Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

กำหนดความหนาของ Outline ด้วย CSS

คุณสมบัติ outline-width ใช้กำหนดความหนาของ Outline รับค่าเป็นความยาว (px, em) หรือคีย์เวิร์ด thin, medium, thick

ตัวอย่าง

<html>
<head></head>
<body>
    <p style="outline-width:thin; outline-style:solid;">
        This text is having thin outline.
    </p>
    <br />
    <p style="outline-width:thick; outline-style:dashed;">
        This text is having thick outline.
    </p>
    <br />
    <p style="outline-width:5px; outline-style:dotted;">
        This text is having 5px outline.
    </p>
</body>
</html>