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 How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

How to build a slide show on the profile page without Javascript?

Based on the website examples provided from Nick, how can we build a slideshow purely with CSS with no Javascript or JQuery?

I been messing with the html and trying to figure out the css to support this in Nick's format.

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Designer</title> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="header"> <a href="index.html" id="logo"> <h2>Designer</h2> </a> <nav> <ul> <li><a href="index.html" class="selected">Portfolio</a></li> <li><a href="about.html">About</a></li> <li><a href="contact.html">Contact</a></li> </ul> </nav> </div> <div class="slider"> <ul> <li> <input type="radio" id="slide1" name="slide" checked> <label for="slide1"></label> <img src="img/numbers-01.jpg"> </li> <li> <input type="radio" id="slide2" name="slide"> <label for="slide2"></label> <img src="img/numbers-02.jpg"> </li> <li> <input type="radio" id="slide3" name="slide"> <label for="slide3"></label> <img src="img/numbers-06.jpg"> </li> <li> <input type="radio" id="slide4" name="slide"> <label for="slide4"></label> <img src="img/numbers-09.jpg"> </li> </ul>ā€‹ </div> </body> </html>

Thank you!

4 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Try here there are 25 to choose from.

Hope this helps.

Hi!

What do you mean slideshow? you mean like a gallery of images that slide ?

media querie if I'm right, its for responsive design.

What Nick has done here is that he has put images on html and then made it as gallery and when it resizes with media querie , change the position etc..

I think you need to have JS for slide show. For any interactivity .

Hope this helps!

-Aurelian

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Erik,

This is a css slideshow I've used before.

css slideshow

Hi, wait what? how does that work ? that css3?

Wayne Priestley
Wayne Priestley
19,579 Points

I updated the link above to their home page instead of the Git page.
Yes Aurelian, its all done with css.

Hi, i just download it and it seem i can't do anything with it, it seem messed up that app with only html . (I'm going sleep now have nice day/night)

Thank you everyone!