|
Dreamweaver CS4 Resources |
Customize the Accordion widgetAlthough the Property inspector enables you to make simple edits to an Accordion widget, it does not support customized styling tasks. You can alter the CSS rules for the Accordion widget and create an accordion that is styled to your liking. For a quick reference on changing the colors of the Accordion widget, see David Powers’s Quick guide to styling Spry tabbed panels, accordions, and collapsible panels. For a more advanced list of styling tasks, see www.adobe.com/go/learn_dw_spryaccordion_custom. All CSS rules in the following topics refer to the default rules located in the SpryAccordion.css file. Dreamweaver saves the SpryAccordion.css file in the SpryAssets folder of your site whenever you create a Spry Accordion widget. This file also contains commented information about various styles that apply to the widget, so you might find it helpful to consult the file as well. Although you can easily edit rules for the Accordion
widget directly in the CSS file, you can also use the CSS Styles
panel to edit the accordion’s CSS. The CSS Styles panel is helpful
for locating the CSS classes assigned to different parts of the
widget, especially if you use the panel’s Current mode.Style Accordion widget textYou can style the text of an Accordion widget by setting properties for the entire Accordion widget container, or by setting properties for the components of the widget individually. To change the text styling of an Accordion widget,
use the following table to locate the appropriate CSS rule, and
then add your own text styling properties and values:
Change Accordion widget background colors To change the background colors of different
parts of an Accordion widget, use the following table to locate
the appropriate CSS rule, and then add or change background color
properties and values:
Constrain the width of an accordionBy default, the Accordion widget expands to fill available space. You can constrain the width of an Accordion widget, however, by setting a width property for the accordion container. |