actually my question came from this.
HTML:
Code: Select all
<table id="e;table_id"e;>
<tr>
<td class="e;some_class"e;>Green</td>
<td class="e;some_class"e;>Green</td>
</tr>
<tr>
<td>Red</td>
<td>Red</td>
</tr>
</table>
<table>
<tr>
<td class="e;some_class"e;>Blue</td>
<td class="e;some_class"e;>Blue</td>
</tr>
<tr>
<td class="e;some_class"e;>Blue</td>
<td class="e;some_class"e;>Blue</td>
</tr>
</table>
CSS:
Code: Select all
#table_id
{
background-color: #FF0000;
}
#table_id .some_class
{
background-color: #00FF00;
}
.some_class
{
background-color: #0000FF;
}
as you can see in this case "#table_id .some_class" basically means that all elements that 'belong' to "#table_id" element and are of class "some_class" will have green background.
so from my previous example - "table#admin td#menu" - is this interpreted following the above logic (but since it's id, there would only be one element per id compared to multiple elements per class) - "<td> element with id "#menu"
OF <table> element with id "#admin""? i do know that i could simply type "table#admin, td#menu" (with a comma) and that would be fine. but is "table#admin td#menu" interpreted the way i described, or is it simply treated as "2 separate id's separated by comma" (even if the comma is not present).
i hope you understood what i mean.