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

CSS Outline Property - Shorthand สำหรับ Outline

คุณสมบัติ outline เป็น Shorthand Property รวม outline-color, outline-style, outline-width ในการประกาศเดียว

ตัวอย่าง

<html>
<head></head>
<body>
    <p style="outline: thin solid green;">
        This text is having thin solid green outline.
    </p>
    <br />
    <p style="outline: thick dashed #009900;">
        This text is having thick dashed green outline.
    </p>
</body>
</html>