Join Chris Converse for an in-depth discussion in this video Creating empty CSS rules, part of Create an Interactive Photo Gallery with jQuery and Dreamweaver.
Now that we have the images in place and all of the assets we need for our…template, let's come back over to Dreamweaver.…Start in here, on each project I usually make a decision whether I'm going to…build the HTML or the CSS first.…Referring back to our sketch, this sort of informs the CSS rules and the…dimensions of the objects we need to create in our CSS.…So what I'm going to do here is I'm actually going to divide this.…We're going to create our CSS rules first, leave them blank, and then we're…going to go into HTML and build the HTML structure, so that we get all the…nesting properly in place with all of the right classes.…
So to start with my HTML file open over here in the CSS panel in Dreamweaver,…let's come down here and click on New CSS Rule.…All the rules we're going to create are going to be classes, and let's start off…creating one called page_container. We'll click OK.…I'm going to leave all of this blank for moment.…I'm going to create another new rule.…This one is going to be called .gallery-credit. Click OK.…
Download a copy of the finished web site here.
- Preparing gallery photos using Adobe Bridge
- Adding and linking thumbnail images
- Creating the layout in HTML and CSS
- Downloading and adding jQuery to the project
- Creating preview images from anchor links
- Implementing the preload functionality
- Building a customized lightbox with the Fancybox plug-in
- Styling the zoom and contact links
Skill Level Intermediate
Q: The finished state of the interactive photo gallery in this course shows a clickable preview. When you click on the preview image, or on the view larger icon, a larger lightbox image appears. Chris's example has a close button and border surronding the large image, but mine doesn't. Did I miss a step?
Q: This course was updated in April, 2013. What changed?
A: Since the release of this course, Internet Explorer 9 and 10 have been released, and sometimes these browsers do not activate interactive HTML content. To remedy this problem, the author has added a movie to Chapter 10 that will show you how to:
- Update the HTML to HTML5
- Update the version of jQuery
- Use the Google html5shiv to keep compatibility with Internet Explorer 7 & 8