3 ms·
TIL! as with most languages, css indentifiers can't start with numbers, but you can get around that using backslash-escapes. you'd use these classes like this:
by uryga 6y ago
TIL! as with most languages, css indentifiers can't start with numbers, but you can get around that using backslash-escapes. you'd use these classes like this:
<div class="35">
this stackoverflow answer has more info (looks like you can use any symbol you want, even spaces and [{}<>&*] !): https://stackoverflow.com/a/27882887/5534735 https://stackoverflow.com/a/27882887/5534735
- uryga 6y agojust realized my usage example is misleading. as sibling comments correctly explain, \35 means chr(0x35) == '\x35' == '5' so the actual usage would be <div class="5">