-2

I am trying to merge:

span[itemprop='description']
{
 color:#8395a7;
 font-size:smaller;
}

And

span[itemprop='streetAddress']
{
 color:#8395a7;
 font-size:smaller;
}

This question has been asked before here but it didn't work for me. I tried this and it failed:

span[itemprop='description'][itemprop='streetAddress']
{
 color:#8395a7;
 font-size:smaller;
}

Any idea how to merge these?

Thanks!

Paulie_D
  • 107,962
  • 13
  • 142
  • 161
Henry
  • 5,195
  • 7
  • 21
  • 34
  • 1
    Does this answer your question? [Combine CSS Attribute Selectors](https://stackoverflow.com/questions/2942286/combine-css-attribute-selectors) – Rayees AC Aug 20 '20 at 06:31

1 Answers1

1

Here is the working example:

span[itemprop='description'], span[itemprop='streetAddress']
{
 color:#8395a7;
 font-size:smaller;
}
<span itemprop="description">I am description.</span>
<span itemprop="streetAddress">I am address.</span>
Yogendra Chauhan
  • 805
  • 5
  • 15