Just getting started?

What's new in Adobe Dreamweaver CS5

Do I have to learn HTML to create a web site?

Before you create your first Web page, set up your site in Dreamweaver

Test your Web site

Browser Test your Web site in Internet Explorer, Firefox, Safari, and other web browers

Award-Winning Dreamweaver Training Videos

Janine Warner, training videos in Dreamweaver

Learn Fast with Janine's Dreamweaver Videos

Dreamweaver FAQ

FAQ: Get answers to your questions fast, and discover the answers to questions you may not have thought of yet... Search the Dreamweaver FAQ

Featured Tutorials

Using Dreamweaver to edit a WordPress blog

Adding E-commerce and a shopping cart with Google Checkout is so easy

Google Checkout

How do you register a domain name? (Tips for finding the domain you want now.)

Choosing the best web hosting service to publish your site

Designing with CSS

Why use Cascading Style Sheets (CSS)?

Customize a CSS Layout
(Dreamweaver CS3 or CS4)

ecommerce web site example

Align Images with CSS floats
(Dreamweaver CS3 or CS4)

Choose the right CSS selector : Class, ID, Tag, or Compound
( Dreamweaver CS4)

Choose the right CSS Selector: Class, Tag, or Advanced
(Dreamweaver CS3)

Templates & Themes

How to use templates in blogs and web sites

Designing templates for Adobe Dreamweaver

Using Dreamweaver to Edit WordPress themes

California Wildlife Photography sample web site

Cool Addititions: Traffic Stats, Google AdSense, Ecommerce & more

Test your Web site in Internet Explorer, Firefox, Safari, and other web browers

Traffic counters, email spam protection, newsletter services, favicons, and more

How to add Google AdSense, Flickr, YouTube, and widgets

Creating drop-down menus with Spry

Add a Drop-Down Menu in Dreamweaver CS3 or CS4

Edit a Spry Drop-Down Menu created with Dreamweaver

Create Collapsible Panels with Spry in Adobe Dreamweaver CS3 or CS4

Learn More

Quick Quiz: Test your Dreamweaver Savvy
(play and learn)

Review: What's the best Web design program? Adobe Dreamweaver or GoLive, Microsoft Expression Web or FrontPage?

Adding Flash (.flv & .swf) to Web Pages

Insert a Flash File (.swf) (Dreamweaver CS3, Cs4)

Insert a Flash Video (.flv)
(Dreamweaver CS3, CS4)

Convert video into Flash with the Flash Video Encoder

Dreamweaver CSS Tips

Create a Navigation Bar with an Unordered List and CSS
(Dreamweaver CS3)

Troubleshooting CSS (Dreamweaver CS3)

Compare Layout Options: Tables/Layers/AP Divs/CSS(Dreamweaver 8, CS3, MX)

Review: More places to learn advanced CSS tricks & techniques

Editing HTML Code

Editing HTML Code in Dreamweaver

Connect an HTML Form to a Script in Dreamweaver (Dreamweaver CS3, CS4)

Dreamweaver Behaviors and Extensions

Use Swap Image Behavior to Create Multiple Rollovers
(Dreamweaver CS3, CS4)

Swap Image Behavior

Use a Behavior to Launch a New Browser Window (Dreamweaver CS3, CS4)

Add new features to Dreamweaver with Extensions (Dreamweaver 8 and CS3)

What's new in Adobe Dreamweaver CS4

Getting started with Blogs and CMS tools

What's the difference between a Web site and a blog?

Big Picture: The advantages (and challenges) of a blog, content managment system (CMS), or other dynamic database site

Review: What's the difference between WordPress, Joomla and Drupal and how do Content Management Systems Work?

Blogging: Which blog program is best: WordPress, TypePad, or Blogger?

Why do you compare web design and blogs to building a house or a prefab?

How do I set up a server on my computer to test and view blogs and templates?

partners and sponsors

Dreamweaver CS5 Training Video

_______

Dreamweaver FAQ

Search for answers to your questions, and maybe even a few you hadn't thought of yet, in the Dreamweaver FAQ.

_______

Trusted by over 7 million customers!

Creating Collapsible Panels with Spry in Dreamweaver

In Dreamweaver CS3, Adobe added the Spry framework, a new set of tools you can use to create drop-down menus, collapsible panels, and other advanced features.

STEP 9 Change Menu Display OptionsYou’ll find the insert options in a Spry Insert bar at the top of the work area, and editing options in the Properties inspector at the bottom of the workspace.

This tutorial shows you how to create a Collapsible Panel with Spry, an interactive feature that enables visitors to your site to open and close panels to display more or less information without reloading the page.

STEP 1 Spry Collapsible Panels in Action

You can add as many Spry collapsible panels to a Web page as you like and visitors can open and close them independently. In the page shown here in the Firefox Web browser, there are four collapsible panels, two are open and two are closed. To test these and other Spry features, you have to preview your pages in a browser that supports CSS and Javascript. (Read on for detailed instructioins below.)

Spry Menu design

(Photos by Jasper Johal, www.jasperphoto.com)

Read below to learn more...

Partners and sponsors

Dreamweaver CS4 Video Training

STEP 2 Set Up Your Site

You can add a Spry menu to a new or existing page, but like most of the features in Dreamweaver, things works better when you’ve first defined your Web site in Dreamweaver. If you’ve already gone through the site setup process, you’re ready for step two. If you’re creating a new site, choose Site > New Site, select the Advanced tab  and fill in the fields in the Local Info category. For more detailed instructions, read the online tutorial Defining a Site in Dreamweaver.

Step 2 Set Up Your Site

STEP 3 Create a New Page or Open an Existing One

To create a new page, choose File > New and then select a file type. In the New Document Window, you can choose from a variety of file types, including ASP, PHP, and CFM. If you’re creating a new page for a basic, static Web site, choose Blank Page, HTML, and then select a CSS Layout or choose None to create a completely blank page. If you choose one of the CSS Layouts, you can alter the layout to better suit your design by editing the CSS definitions. (You’ll find tips for editing CSS layouts like this one the Dreamweaver tutorial in the last issue of Layers Magazine.)

STEP 3 Create a New Page or Open an Existing One

STEP 4 Insert Spry Collapsible Panel

To insert a Spry Collapsible Panel, first open the Spry Insert Bar at the top of the workspace by clicking on the Spry Tab, or choosing Spry from the Insert Bar drop-down list. Place your cursor where you want to create the panel in your Web page, and then click on the Spry Collapsible Panel icon at the far right of the Insert bar.

STEP 4 Insert Spry Collapsible Panel

STEP 5 Add Content to Panel and Tab

When you insert a Spry Collapsible Panel, a two-section panel is added to the page. The top section is labeled Tab, the bottom section, Content. The Tab area is what a user will click on to open or close the bottom section. You can replace the word Tab with any text you want by selecting it and typing new text in its place. Similarly, you can replace the word content with your own text, images, and other elements.

STEP 5 Add Content to Panel and Tab

STEP 6 Edit Style Definitions

The format of the text in a Spry Collapsible Menu is controlled by CSS. Thus, to alter the appearance, you need to edit the CSS definitions. For example, to made the text in the tab area bigger or bolder, you could double click on the style named: .CollapsiblePanelTab in the CSS Panel and in the CSS Definition dialog, use the settings in the Type category to specify the font face, size, and style.

STEP 6 Edit Style Definitions

STEP 7 Add Additional Panels

To add more Collapsible Panels to the same page, repeat steps 4 – 6. Each time you add a Collapsible Panel, Dreamweaver automatically inserts the corresponding code in the HTML page and names the panel in the order it was created, CollapsiblePanel1, CollapsiblePanel2, etc. However, only one set of CSS styles are added to the page for all of the panels. If you want to alter the display of the panels so that they are not the same in appearance, you’ll need to create new styles using the panel name to target the id of the Div that surrounds the panel.

STEP 7 Add Additional Panels

STEP 8 Preview in a Browser to Test

To test a Spry feature, like a Collapsible Menu, you’ll need to preview your page in a Web browser, such as Safari or Firefox. Click on the tab at the top of the Collapsible Panel to close it, click again to open it.

STEP 8 Preview in a Browser to Test

STEP 9 Change Menu Display Options

You can change the basic panel settings by altering the options in the Property inspector. To do so, you need to select the blue tab at the top left of the Collapsible Panel in Dreamweaver to display the settings in the Property Inspector. These settings are specific to each panel and are edited indendently.

STEP 9 Change Menu Display Options

Originally written for Layers Magazine, June, 2007

Return to Dreamweaver Training Center

Partners and sponsors

Dreamweaver CS4 Video Training