Customize the Collapsable Panel Widget
Although the Property inspector enables you to make simple edits to a Collapsible Panel widget, it does not support customized styling tasks. You can alter the CSS for the Collapsible Panel widget and create a collapsible panel that is styled to your liking. For a more advanced list of styling tasks, see www.adobe.com/go/learn_dw_sprycollapsiblepanel_custom. All CSS rules in the topics below refer to the default rules located in the SpryCollapsiblePanel.css file. Dreamweaver saves the SpryCollapsiblePanel.css file in the SpryAssets folder of your site whenever you create a Spry Collapsible Panel widget. This file also contains useful commented information about various styles that apply to the widget. TipWhile you can easily edit rules for the Collapsible Panel widget directly in the accompanying CSS file, you can also use the CSS Styles panel to edit the collapsible panel’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 Collapsible Panel Widget Text
You can style the text of a Collapsible Panel widget by setting properties for the entire Collapsible Panel widget container, or by setting properties for the components of the widget individually. To change the text format of a Collapsible Panel widget, use the following table to locate the appropriate CSS rule, and then add your own text styling properties and values:
Change Collapsible Panel Widget Background Colors
To change the background colors of different parts of a Collapsible Panel widget, use the following table to locate the appropriate CSS rule, and then add or change background color properties and values to your liking:
Constrain the Width of a Collapsible Panel
By default, the Collapsible Panel widget expands to fill available space. You can constrain the width of a Collapsible Panel widget, however, by setting a width property for the collapsible panel container.
|