Join Chris Converse for an in-depth discussion in this video Adding CSS properties for content area, part of Create an Interactive Photo Gallery with jQuery and Dreamweaver.
Now that we've completed our markup, let's switch over to Design view.…In the CSS Styles panel, let's come over to .page_container and let's edit that rule.…We're going to come down to Box properties.…We're going to set this to 960. We're going to set 0 for all of the padding.…For the margin, we're going to set 20 pixels on the top.…We're going to set auto for right and left so this will center in the page…and, 0 for the bottom.…I can click Apply to see the changes take effect and then click OK.…
Next, we're going to edit .gallery_credit.…This is the upper left-hand corner.…This where we're going to have our name.…Let's go under the Box settings here, and so for credit we're going to set a width of 425.…We're going to set Float left.…We're going to set 0 for all the padding.…Margin, we're going to set 0 on the top, 0 on the right, 10 on the bottom, and 15 on the left.…Click Apply. I can see that change take place. Click OK.…Let's set the .gallery_type.…
Box properties for the type, 500 pixels wide.…
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