This is my HTML:
<dl id="id">
<dt>test</dt>
<dd>whatever</dd>
<dt>test1</dt>
<dd>whatever2</dd>
....
</dl>
I want to select the third dd but I cant make it work. This is what I tried:
dl#id dd:nth-child(3) {
color: yellow;
}
The style is not applied, whats wrong?
Thanks!
nth-child(6)to match that DD. You'll have to use:nth-of-typeto match the element and which number it is.