I am using jqGrid for a project and inspecting the styles it uses I find selectors such as this:
.ui-jqgrid tr.ui-row-ltr td { ... } .ui-jqgrid is of course a class.
td.ui-row-ltr is a selector for class ui-row-ltr as applied to a table row element.
So to my questions:
- What does it mean that they are separated by a space? I know comma separation
.class1, .class2means "Apply to class1 and class2", but what does space separation mean? - What does the
tdat the end mean?td.classI understand butclass td?
<td>that is a descendant of a<tr class="ui-row-ltr">that is a descendant of<___ class="ui-jqgrid">">) you will get a series of direct child selectors. Such as.ui-jqgrid > tr.ui-row-ltr > tdwhich is stricter than.ui-jqgrid tr.ui-row-ltr td.