Fri, Aug 5, 2016
comments powered by Disqus
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>