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
  • 745
  • 10
  • 21

1 Answers1

4

You just need to escape the & with \

.hello\&world {
  color: red;
}
<div class="hello&world">test</div>
j08691
  • 197,815
  • 30
  • 248
  • 265