Adding CSS properties for headings
Video: Adding CSS properties for headingsNow we're going to add the headings to our gallery. Let's start in the top-left here, inside of the div gallery_credit. So up here, we're going to type our name, select some of the characters, come down to Format. Let's assign this to be an h1 tag. In the upper-right, inside of gallery_type, I'm going to type Photography. Select a few characters here. Let's assign this to be an H2.
Viewers: in countries Watching now:
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
Adding CSS properties for headings
Now we're going to add the headings to our gallery. Let's start in the top-left here, inside of the div gallery_credit. So up here, we're going to type our name, select some of the characters, come down to Format. Let's assign this to be an h1 tag. In the upper-right, inside of gallery_type, I'm going to type Photography. Select a few characters here. Let's assign this to be an H2.
With these in place, let's come over to our CSS panel. Let's create a new rule. The first one is going to be a tag, assigned to the h1. Click OK. First thing I want to do, come under the Box properties, set 0 for Padding and 0 for Margin. Let's come under Block properties, set Letter-spacing of 2 pixels. Come under Type. Let's set the Font to 1.75 ems. This will make this 75% larger than the base font.
Color, we'll select white; Font-weight, normal; and then we'll click Apply. That looks right. Let's click OK. Let's come over to our CSS Rules. Let's create one more. Another tag defining the h2 properties. In here, Box model, first 0 for all Padding, 0 for all Margin. Block properties, we're going to set a letter spacing of 23 pixels. Let's go to Type.
This is going to be 1.25 ems. Font is going to be medium gray. Weight is going to be normal. Text-transform, all uppercase. Click Apply. It's going to space this out here. Then we're going to click OK. Now that we have our headings formatted, we're going to start in the next movie by adding the thumbnail images to the thumbnail area.
Find answers to the most frequently asked questions about Create an Interactive Photo Gallery with jQuery and Dreamweaver .
Here are the FAQs that matched your search "" :
- 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?
- A: The functionality you describe is part of FancyBox plug-in we use in this course. It's a custom lightbox tool, which I've included in the exercise files and also available for download at fancybox.net. It's free and highly customizable.
By default, FancyBox adds a border to images (at least in the version of FancyBox we're using), but there are many options that can be turned on when you set up your fancybox initialization script, including the close button, which is invoked using the showCloseButton property. This is all covered in the "Creating a custom function for lightbox properties" movie.
If you want to customize your gallery further, look at the list of the customizable properties at http://fancybox.net/api.
- 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
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.