Space in CSS selectors, for example:
.foo .bar {...
the descendant element is specified. This would target the inner div using the bar class, for example,
<div class="foo">foo <div class="bar">bar</div> </div>
JsFiddle example
Removing a space means that the element you selected has both classes, for example:
.foo.bar {...
This example will target a div with two classes foo and bar:
<div class="foo">foo <div class="foo bar">foo and bar</div> </div>
JsFiddle example
source share