Website Knowledge

HTML, CSS, Javascript, jQuery and more

CSS Class Name Cannot Begin with a Number

It's funny how we sometimes forget the most basics of technology, I was going crazy trying to solve a CSS issue, no matter what I did I could not see the effects of the class on the element. When I put the same CSS in an inline style it would work, so I noticed the name I gave to the class started with a number and there you go! You cannot start a classs name with a number.

Comments are closed