0

I found somewhere that I can use backslash in CSS id# as an exception on some pages that have two id names in same selector. And it works, but I can't find any reference and what version of CSS can use it. Any explanation?

CSS:

#content\ shopWide .someclass {
  width: 37px;
  background: khaki;
}

HTML:

<div id="content shopWide"><div class="someclass">blah</div>

Furdong
  • 1
  • 2
  • 1
    Check this thread https://stackoverflow.com/questions/27882839/what-does-container-31-25-25-mean-in-css – Ovidiu Unguru Aug 31 '17 at 11:08
  • 2
    It's not "two ID names", it's one ID containing space character. Escaping this character with backslash makes it work in the CSS selector. – Ilya Streltsyn Aug 31 '17 at 11:09

0 Answers0