html - How do i target an inline element and a block level element together? -


i have shortcode generated wordpress theme , output is:

<div class="heading clearfix"><i class="icon icon-list-ol h2"></i> <h2> hello world! </h2></div>

i need style icon , h2 elements, how target them together?

tried one:

i.icon.icon-list-ol.h2 h2 {color:red;}

but didn't work.
ps: it's shortcode generated wordpress theme.

separate them comma:

i.icon.icon-list-ol.h2, h2 {color:red;} 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -