Skip to content
Loading
what's this combinaison of selectors?
+2
  • Thanks
    +2
  • Ok, thanks.
    +2
  • Sachin Singh
    Space in CSS represent the children
    .class1 p 
    Means the P tag which is inside an element having class 'class1' .In your case, there is no such P tag which is inside the Class1 element (h4) so nothing will happen.
     
    I think you read somewhere that space is used to select descendent element , By descendent they mean all children of an element and When they say child (.class1>p) they mean immediate child only.
    +2
  • Hi, I just don't understand why nothing happens here, i mean no text becomes green with size 36px.
    What does .class1 p mean exactley?
    Thanks. 
    +2
  • Abhishek Chadha
    what is your requirement ?
    +2