Selector สามารถกำหนดตัวลูกของมันเพื่อระบุเฉพาะสิ่งที่ต้องการได้

ตัวอย่าง

.box-1 h1{
    font-family: Tahoma;
    font-weight: 800;
    font-style: italic;
    text-decoration: underline;
    text-transform: uppercase;
}

หมายถึง element h1 ทุกตัวที่อยู่ภายใต้ class box-1 จะต้องมี style ตามที่กำหนด

results matching ""

    No results matching ""