6
Answers

what's this combinaison of selectors?

Hi,

With this code, nothing happens. Why? What's the difference between style p.class1 and .class1 p (or p  .class1)? Thanks.

<style type="text/css">
.class1 p { color: green; font-size: 36px } 
</style>

<h4 class="class1">This is text in h4-tag.</h4>
<p>This is text in p-tag</p>
<p class="class1">This is text in p-tag with class1.</p>

Answers (6)