Syamsul 'isul' Arifin

kartunis dan desainer

Fri, Aug 5, 2016

The Difference between p.classname and .classname p

So, what is the difference between p.classname and .classname p in css? Maybe this simple explanation below can make you understand.

p.classname {} is for….

<p class="classname"></p>

and

.classname p {} for…

<div class="classname">
    <p>     
    </p>
</div>
comments powered by Disqus