Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] what's difference between these selectors ? Reply To: what's difference between these selectors ?

#153708
Paulie_D
Member

.class1.class2 selects an element that has both classes.

.class1 .class2 selects an element with a class of .class2 that is a child of an element that has a class of .class1.

http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/