Start learning with our library of video tutorials taught by experts. Get started

Create a Rotating Carousel with jQuery and Dreamweaver
Illustration by

Building the HTML and CSS for the inner container


From:

Create a Rotating Carousel with jQuery and Dreamweaver

with Chris Converse

Video: Building the HTML and CSS for the inner container

With our outermost container created, let's come over to our CSS rule and create another rule. We are going to create another class. This one is going to be called carousel_container. Let's choose Ok. Inside of here, we are going o come down to the Box properties. We are going to set a Height of 340 pixels. We don't have to worry about the Width because it will pick up the width from the parent, which is set to 760. For Margin, we are going to set 0 for all.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Create a Rotating Carousel with jQuery and Dreamweaver
58m 47s Intermediate Feb 02, 2012

Viewers: in countries Watching now:

Learn how to implement and customize an interactive rotating carousel animation with jQuery and Adobe Dreamweaver. Author Chris Converse covers preparing the carousel images and captions, creating the carousel containers with HTML and CSS, and activating the carousel with JavaScript. The course also explains how to add images to the carousel container, set the caption based on the image in focus, and add animated transitions between captions.

Topics include:
  • Exporting graphics from Photoshop
  • Creating the HTML, CSS, and JavaScript files
  • Positioning elements with CSS
  • Using the Roundabout plug-in
  • Activating the carousel callback
  • Detecting the image in focus
  • Adding the final touches
Subjects:
Web Web Design Projects
Software:
Dreamweaver jQuery
Author:
Chris Converse

Building the HTML and CSS for the inner container

With our outermost container created, let's come over to our CSS rule and create another rule. We are going to create another class. This one is going to be called carousel_container. Let's choose Ok. Inside of here, we are going o come down to the Box properties. We are going to set a Height of 340 pixels. We don't have to worry about the Width because it will pick up the width from the parent, which is set to 760. For Margin, we are going to set 0 for all.

Next, we are going to come down to Background settings. Let's come down to Background-image. Let's choose Desktop/myCarousel/images, and we will choose background.jpg and click Choose. Next, under repeat, we are going to choose no-repeat, and we are going to set a 0 on the X and 0 on the Y position, then choose OK. Now we want to put this inside of the my_carousel container, so I am going to get my cursor inside of here, maybe after the word content, come up to the Insert panel, choose Insert a Div.

Let's come down to Class and choose carousel_container and then click OK. We will see the carousel container now is placed in here. We see some default text for the carousel container, and then we can see the background being positioned in here as well. Now that the carousel container div is in place, let's come over to our CSS Rules and create another rule. I am going to create another class. This rule is going to be called caption_container. Make sure it's set to Class. Let's choose OK.

The Properties here, let's go down to Box properties. We are going to set this to 435 pixels wide. For Margin, let's uncheck Same for all, and we are going to set 0 on the Top, Right, Bottom, and on the Left, we are going to set a Left of 165 pixels. For Padding, let's uncheck Same for all. We are going to set 0 on the Top, 0 on the Right, 0 on the bottom, and 20 pixels on the Left. This will make sure that text doesn't touch the left border, which is acting as our stem. Lastly, let's come up to the Border settings. Let's uncheck Same for all for Style, Width, and Color. Under the Style column for Left, let's come down and choose Solid; for the Width, we will set that to 3 pixels; and for the Color, we are going to type #713e1b.

That is going to give us that dark-brown color. Let's choose Ok. Now back in the page, we need to make sure that this is inside of the outermost container but not inside of the carousel container, so after the S in class, from the original my_carousel default text, let's come up here and choose Insert Div. We will choose the caption _container, then click OK. Now, when I click away, we can see a very slight indication here of that left border and the default text for caption_container in here as well.

Next, we want to bring in the leaves graphic, so let's get our cursor after the word Goes in the outermost container for my_carousel. With our cursor after the word Goes, let's come up to the Insert panel. Let's come over to the Common settings. Let's click on images. Let's come down and choose leaves.png, then click Choose. We can type leaves for the Alternate text, then click OK. Now we need to bring in one more div, and this is going to be the div that's going to hold all of the data. So let's come over to our CSS Styles. Let's create another class.

Let's call this carousel_data. Let's choose Ok. We are not going to set any properties at this point. And then we are going to get our cursor after the word Here, in the outermost container. That's my_carousel goes here default text. Let's come back up to Layout in the Insert panel, insert a div tag, and let's come down and choose carousel_data, then click OK. At this point, we have four items inside of the my_carousel outermost container. We have our carousel container, we have our caption, we have our leaves, and we have our data div.

At this point, we can start deleting all of the default text from the my_carousel goes here. So let's come in here and get rid of this text over the word Here after the leaves. Let's get rid of for class before the last one, and then content at the very top. Now if I scroll through, I should just see these four individual items. If we switch over to Code view and take a look at what's happening in the code-- I'll just come in here and format this little bit-- we can see that we have the my_carousel container and inside of there, we have four items: we have the carousel_container, the caption_ container, the leaves, and the carousel_data.

And all of these are contained in the outermost container of my_carousel. This gives us that exact structure that we were after in order to create the layout. Let's switch back to Design view. At this point let's choose File > Save All, and in the next movie we will focus on the containers that go inside of the carousel container.

There are currently no FAQs about Create a Rotating Carousel with jQuery and Dreamweaver.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create a Rotating Carousel with jQuery and Dreamweaver.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.