ELEMENT OF CERTAIN CLASS .blog img{ max-width:100%; height:auto; } DIRECT CHILDREN #footer > a NTH CHILD li:nth-child(2) { font-weight:800; color: blue; text-style:underline; }