CSS/HTML picture gallery-like object?

I am making a CSS/HTML website and I want to have a box which contains many images (i also need the box to resize to the images. I also want navigation buttons underneath (last, previous, random, next, last) that will switch the image only and not load the entire page. It's kind of like xkcd.com. I have a very base knowledge of CSS. Can someone let me know how to do this?
 
Back
Top