(Close)
Forgot password?
Join Now! Watch Tutorials
macProVideo.com
Close

Free Premium Access

Access our entire library of Premium Hub Articles, Project Files and the first 10% of each Tutorial-Video from the Online Tutorial Library.

Create your FREE Account now!

Already a member? Login

Categories

Related Articles

  • Creating Image Rollovers Using CSS in Dreamweaver
  • by David Smith
  • There are certain trends in the world of web design that spread like wildfire… One of these is the use of image rollovers. David Smith shows how to emulate this using Dreamweaver CS5 & CS6.
  • Creating Great Text With CSS3 in Dreamweaver
  • by David Smith
  • Want to create great looking text in Dreamweaver, but feeling stifled by the CSS styles panel? David Smith comes to the rescue with CSS style tips which will set free your inner designer!

Related Tutorial-Videos

  • Pro Tools 10 112
  • Advanced Editing Techniques
  • Becoming a Pro Tools editing Ninja requires mastering the tools of the trade. Join Certified Avid trainer Mike Watkinson as he explores the art of editing and managing clips in Avid’s Pro Tools 10...
  • Final Cut Pro X 201
  • Multicam Editing
  • Learn the art of Multicam Editing in Final Cut Pro X in the 23-video tutorial created by our in-house, Final Cut "X"pert, Michael Wohl...
  • Media Composer 6 103
  • Advanced Editing Techniques
  • Media Composer is filled with tools and techniques that will get you cutting and trimming video fast! Join MC expert Jeff Greenberg as he opens up his editor's toolbox and shows you everything you need to know...
  • Media Composer 6 102
  • Basic Editing Techniques
  • Learn the fundamentals of editing in this 36-video, Avid Learning Partner tutorial by Media Composer expert Jeff Greenberg...
  • Photoshop CS5 103
  • Adding Text To Images
  • One of the most common techniques as a Photoshop user is to add text to an image or graphic. In this tutorial Photoshop Pro Nathan Fullerton shows you all the different ways you can approach Adding Text to Images in Photoshop...
  • Reason 6 106
  • FX, EQ, Automation and Mixing
  • The instruments are smoking. The rack is exploding. Now it’s time to pull it all together and make musical sense of all this Reason 6 mayhem! In this tutorial, Hollin Jones get’s you into the mixer and exploring the FX, EQ and automation...
  • Pro Tools 10 104
  • Editing Audio
  • You’ve recorded the tracks. Now let’s get into editing! Get the basics of audio editing in Pro Tools 10 in these AVID Learn Partner tutorial-videos by MPV’s Scott Freiman...
  • Motion 5 106
  • Editing In Motion
  • OK. So you’ve got all this wild text, multiple objects, particles, generators and replicators silently flying around the screen. Now what? In this tutorial by Michael Wohl, learn how to Edit, Retime and add Audio to heighten the power and “emotion” of your motion graphics...
  • Final Cut Pro X 104
  • Advanced Editing Techniques
  • Final Cut Pro X, with its easy-to-use, freeform timeline, is truly revolutionary. However, with new ideas come new challenges and tools. This in-depth editing tutorial by expert editor Michael Wohl, dives beneath the “Magnetic” timeline’s surface to show you FCP X’s many incredibly powerful editing modes and tools. Get this tutorial to learn all about the new, Advanced Editing Techniques in Final Cut Pro X.
  • Final Cut Pro X 103
  • Editing In The Magnetic Timeline
  • FCP X’s timeline is not only “Magnetic” but also redefines the whole concept of what a timeline is and how it works! Join Michael Wohl, one of the original designers of Final Cut as he shows how this amazing new video editing canvas will make your editing easier, faster and more fun!
  • Dreamweaver CS5 101
  • Core Dreamweaver CS5
  • 7-Hours of Dreamweaver Tutorials. Design and build complex web sites with confidence and style…let Dreamweaver Master Geoff Blake show you how!
  • Dreamweaver CS5 201
  • Exploring CSS
  • Learn the power of Cascading Style Sheets in this powerful Dreamweaver tutorial by our webmaster wizard Geoff Blake.
  • Logic 104
  • Flex Time Editing
  • Flex Time Editing is one of the most exciting and anticipated features of Logic Pro 9. Star macProVideo.com trainer Steve H. shows you how it works!
  • Nov 13, 2011
Adding and Editing Spry Accordions Using CSS in Dreamweaver
  • Genre: Web
  • Level: Intermediate/Advanced
  • Time to Complete: 5-15 minutes
  • 0 comments — Start Discussion

Preview these Dreamweaver Tutorial-Videos

Dreamweaver CS5 201: Exploring CSS - Play IconDreamweaver CS5 201: Exploring CSS - Preview Video
Dreamweaver CS5 201: Exploring CSS - Play IconDreamweaver CS5 201: Exploring CSS - Preview Video
Dreamweaver CS5 201: Exploring CSS - Play IconDreamweaver CS5 201: Exploring CSS - Preview Video

Spry Accordions are a delightful way in which to deliver large amounts of information in a confined space. They are also a  lot of fun for users if you use them in a clever way. If anyone has used Adobe's new HTML5 software (code named "Muse") you will have seen that Spry Accordions play a big part in that application also. In this article I'm going to show you how to add a Spry Accordion to your web page and then use Cascading Style Sheets to edit how it looks.


Step 1 - Create an AP DIV

I like to control the position of a Spry by placing it inside an AP DIV. To create an AP Div go to the Insert Panel and choose Layout > Draw AP Div

AP Div Draw

AP Div Draw


Use the Cursor to draw a box on the page. The blue box that appears is your AP Div. 


Step 2 - Position and Size the AP Div

To Move the AP Div (which is just a DIV Tag that has some CSS controlling its formatting) grab the small white handle at its top left and drag its interposition to your page. 

Re-size AP DiV

Resize AP DiV


To resize the AP Div you could grab one of its blue anchor points and drag to the desired size.  


Step 3 - Inset a Spry Accordion

Click inside the AP Div to activate the cursor inside, then from the Insert Panel choose Layout > Spry Accordion

Spry inserted

Spry inserted


A Spry Accordion appears inside the AP Div that you drew. 


Step 4 - Add More Panels

The Spry Accordion uses panels to allow users to reveal or conceal its content in a movement similar to an accordion, hence the name. I'm adding some more. 

With the Spry Accordion selected (which you can do by clicking on the Cyan-colored Spry Accordion label). Use the Properties Panel to add more labels.

Labels in properties

Labels in properties


Use the + button to add 2 more Panels so you see this:

More labels added to spry

More labels added to spry


Step 5 - Edit the Contents of the Spry

When you hover the cursor over each Label Tab on the Spry Accordion, a little eye symbol will appear. Clicking on this symbol will open the contents of that particular Tab enabling you to edit it. 

Eye and contents

Eye and contents


Highlighting the text of the Label allows you to change the label's name. Highlighting the text "Contents" allows you to edit the text contained inside the Spry. 

Tip: copy and paste large amounts of text in here.

Filled Spry

Filled Spry


Repeat this until you have content and names for each label. 

To see how the Spry Accordion operates, switch on Live View and click on each Panels Tab in turn. Nice, right?

Live View Button

Live View Button


Keep the Live View active from here on so you can monitor the changes you're making.


Step 6 - Edit the style of the Panel Tabs

Have a look at the CSS Styles Panel, you will see a Style Sheet named SpryAccordion.css:

Spry CSS

Spry CSS


Click on the Arrow to reveal the contents of the Style Sheet and you will see a list of Compound Class styles, all of which control individual aspects of how the Spry Accordion looks. Select the Style named .AccordionPanelTab

Panel Tab Style

Panel Tab Style


You will see from the CSS Properties that the default Background color is #CCCCCC. Change this text to read #00CC66 (Tip: this can be shortened to #0C6)

Green tabs

Green tabs


The Panels will change to Green. To create a highlight on the tab as you roll over select

.AccordionPanelOpen and .AccordionPanelTab and set the Background Color to #0F9.


Step 7 - Edit the Style of the Focused Tabs

Try clicking on the Panel Tabs and you'll see they turn blue. This is because the CSS controlling the Focused properties are set to blue: 

Blue Spry

Blue Spry


To change them do the following in the CSS:

To create a highlight for the tab that is open:

  • Select .AccordionFocused, .AccordionPanelOpen and .AccordionPanelTab and set their background color to #9FC


To make sure that any closed panels while the Spry Accordion is active are the same green as the closed panels when the Spry Accordion is not active: 

  • Select .AccordionFocused and .AccordionPanelTab and set their background color to #0C6

Finished Spry

Finished Spry


You could continue to add or modify parameters on any and all Class Styles on the SpryAccordion.css style sheet however you wish, as the principles are the same. Go ahead and try adding color to the text, or changing the font, etc. until you create a style that suits you.


Preview these Dreamweaver Tutorial-Videos

Dreamweaver CS5 201: Exploring CSS - Play IconDreamweaver CS5 201: Exploring CSS - Preview Video
Dreamweaver CS5 201: Exploring CSS - Play IconDreamweaver CS5 201: Exploring CSS - Preview Video
Dreamweaver CS5 201: Exploring CSS - Play IconDreamweaver CS5 201: Exploring CSS - Preview Video
David Smith

David Smith

David Smith is Scotland's most qualified Apple and Adobe certified trainer. Having completed his education at Edinburgh College of Art's BAFTA winning Film School, David moved straight into TV production, first as a Vision Mixer then quickly becoming, at the age of just 24, a director of live TV studio productions. In 2001 he moved into Higher Education where he became a lecturer in TV Production, specializing in post-production and live studio production. During this time, and working with the support of the BBC, Channel 4 and independent production companies, David was instrumental in the design, development and implementation of industry-approved vocational courses across Scotland's Colleges. In 2006, after working closely with Apple Computers to create a unique multimedia studio for education at the Music and Media Centre in Perth, David became Scotland's first Apple-Certified Trainer for Pro Apps. This led on to David forming the first Apple Authorized Training Centre for Education, north of Manchester. In 2008 David made the move to full time training and joined the ranks at Academy Class, Ltd. where he continues to train industry professionals as a certified trainer across the Adobe Creative Suite and Apple Pro Apps range.

Comments

You must be logged in to post a comment.
Create an Account  Login Now

What is macProVideo.com?

macProVideo.com is an online education community featuring Tutorial-Videos & Training for popular Audio & Video Applications including Adobe CS, Logic Studio, Final Cut Studio, and more.
© 2012 macProVideo.com
a division of NonLinear Educating Inc.

About

Our Plans

Tutorials

Community

Help

Legal

Link