Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Colin Lewis
Colin Lewis
9,021 Points

hiding a CSS class

I am trying to hide a couple of images using classes. I made this page real quick using WP Visual Composer, it allows me to add classes to images, I planed on having two images hidden then if the view port is smaller, have them show up, but for some reason when I put in

.1280-vp-image {display: none;}

nothing happened. what am I doing wrong?



1 Answer

Kevin Hamil
Kevin Hamil
8,203 Points

You cannot begin a class name with a number. The first character must be a letter.