If there is a child inside a div with an id, such as id="mother"
, how should the css be written correctly?
Example:
1) #mother ul li {...}
or
2) .mother ul li {...}
Is there a difference? The second example I came across when MOTHER had a class name, not an id.