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.
- View Offline
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