For legacy reasons, my CSS class is has a .x prefix:
.x input.myclass {
background-color: red;
}
I'm not familiar with this syntax, how can I use this class in an HTML element? None of the below work:
<input type='text' class='myclass'>
<input type='text' class='x myclass'>
<input type='text' class='.x myclass'>
<input type='text' class='.x.mylcass'>
<input type='text' class='x.mylcass'>
-webkit-,-moz-,-o-, and-ms-and what you have above isn't close to that.cssquestions, it seems like there are others that you could also solve by reading some docs first..xis a prefix. In the css sense, no, it definitely isn't. It seemed pretty clear to me what he was trying to communicate, though