1

This may be a very silly question to others but I just came across something like this

<div class = "inventory.InStock"></div>

I don't know how much about CSS and tried to search in Google by Nested CSS / Modular CSS but may be I am in the wrong direction.

What it is and how to use it?

enter image description here

priyanka.sarkar
  • 23,174
  • 39
  • 117
  • 161

1 Answers1

1

It looks like a CSS class name with a . character. You can style it by escaping the character in your CSS file:

inventory\.InStock {

  /* your styles here */

}

Or by using attribute selectors:

div[class="inventory.InStock"] {

  /* your styles here */

}

However, there will definitely be browsers that do not support this.

Default
  • 13,484
  • 3
  • 22
  • 36