I dont have much experiences in CSS, but recently i found out that there is a difference between having a whitespace before a class selector and without having one. So far, I only know that they are interpreted as two different things…Can somebody experienced in CSS explains to me what the particular difference is? Does this also apply to id selector?
Thanks. appreciate your answers.
#someid ul li.someclass ameans#someid ul li .someclass ameansSo, the
<a>element in the following markup is matched by the first rule, but not by the second:And the
<a>element in the following markup is matched by the second rule, but not by the first: