0

Hey guys I have a div class="hello&world" for example.

How Can I use it on CSS file?

I tried that .hello&world{display: none} but I cant take & in that file.

Is there any way to do that?

Maria
  • 760
  • 2
  • 9
  • 22

1 Answers1

4

You just need to escape the & with \

.hello\&world {
  color: red;
}
<div class="hello&world">test</div>
j08691
  • 204,283
  • 31
  • 260
  • 272