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 Create a Fullscreen Slider with CSS

Carolyn DeHass
Carolyn DeHass
5,434 Points

Next and Previous buttons

How would one use Next and Previous buttons instead of a label for each input?

1 Answer

Steven Parker
Steven Parker
231,248 Points

You could do it with JavaScript, but this particular script-free technique relies on the unique way labels can be associated with buttons, and using hidden buttons to trigger the background changes. If you wanted that feature, you might be better off implementing the whole thing with JavaScript.

The good news is that is a typical feature of the common JavaScript carousels that are readily found online.