Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

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?

http://thebeatoflife.scellc.co/index.php/about-us/

thanks!

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.