2012年10月17日星期三

tutorial Spry Drop Down Menus & CSS Dreamweaver

tutorial Spry Drop Down Menus & CSS Dreamweaver

Once you have downloaded a widget from the Adobe Exchange, you can configure it inside the Widget Browser. The available options depend on how the widget was packaged by the developer. Spry Menu Bar 2.0 has a large number of options, giving you considerable control over its appearance. The options are divided into the following categories:

Binding & Behavior: Changes the menu ID and speed of operation.
Fonts: Offers a choice of web-safe fonts. Also changes the font size and weight.
Menu Bar Layout: Determines the orientation (horizontal orvertical) and alignment of the menu. This is also where you set the width ofthe menu and menu items.
Submenu Layout: Controls the width of submenus.
Colors: Sets the colors for all parts of the menu, except borders.
Menu Bar Borders: Offers a fine level of control over borders on the menu bar and top-level menu items.
Submenu Borders: Sets the borders on submenus and submenu items.
Once you have configured a widget, you can save the settings for use in other pages. You can also build new presets based on an existing one.

Follow these steps to begin with the first two sets of options:

Select Spry Menu Bar 2.0 in the My Widgets screen of the Widget Browser. This opens a preview of the menu bar on your local computer. The screen is identical to the one you saw when you previewed the menu bar on the Adobe Exchange, but with the addition of a Configure button at the bottom left.
Select Fixed Width Submenus in the WIDGET PRESETS section, and click the Configure button. This opens a screen where you can change the look and behavior of the menu to suit your own needs (see Figure 7).

Figure 7. The Widget Browser provides a simple editing environment for the menu.
The panels on the left of the Widget Browser slide up and down, giving access to all the menu's settings. Any changes you make are reflected immediately in Live View on the right.

The first panel, BINDING & BEHAVIOR, lets you change the menu's ID and timing of the flyout menus. The delays are expressed in milliseconds, so the submenus appear and disappear after a delay of 0.2 seconds by default. These default values are fine as they are, so no changes arenecessary.

Since you're going to save the changes you make to the look of the menu, you need to give it a unique name. Type Horizontal 960 Fixed Width Submenus in the Name text box on the bottom right.
Click FONTS to open the next panel.
In the Menu Bar section use the following settings:
Font Family: "Lucida Sans Unicode", "LucidaGrande", sans-serif
Size: 18px
Weight: Bold
Style: Normal
Use the same settings in the Submenu section, but set Size to 16px.
The changes are reflected immediately in Live View (see Figure 8).

Figure 8. The new fonts are displayed in Live View.
Note: If you want to take a break at any stage, click the Save Preset button at the bottom right of the Widget Browser. This saves your changes, and lists Horizontal 960 Fixed Width Submenus under MY PRESETS in the Preview screen of the Spry Menu Bar 2.0 widget. To resume editing, select your configuration from MY PRESETS and click Configure.

Setting the layout and width of the menu bar
The MENU BAR LAYOUT panel lets you choose whether to use a horizontal or vertical layout. If you choose a vertical menu bar, the width is automatically determined by the width of the menu items, and the menu is always aligned left. For a horizontal menu bar, you have the following options:

Full width: The menu expands to fill the width of its containing element.
Fixed width: The menu can be either left aligned or centered.
Shrinkwrapped: The width is determined by the total width of the menu items, and the menu bar can be aligned either left or right.
This panel represents probably the most difficult part of configuring a Spry Menu Bar 2.0 widget, because it requires not only an understanding of how widths are calculated in CSS, but also of how the menu items are styled. The menu bar and submenus follow the widespread convention of styling nested unordered lists. So, the HTML markup for each menu item is simply a link inside an <li> element like this:

<li><a href="/index.html">Home</a></li>
However, in the MENU BAR LAYOUT panel, as well as setting the width for each menu item, you need to set the padding for both the item and the item label. This is because the Spry Menu Bar 2.0 widget uses JavaScript to manipulate the HTML markup, adding not only classes, but also wrapping the textof the menu item in a <span> tag like this:

<li class="MenuItemContainer"><a href="/index.html" class="MenuItem MenuItemFirst"
tabindex="0"><span class="MenuItemLabel">Home</span></a></li>
You can see the effect this has on the structure of the menu items by giving each part a distinctive background color to make it easy to identify (see Figure 9). The item label is the green section immediately surrounding the text. The yellow area represents the menu item, and the narrow blue stripes represent the left and right borders of the menu items.

buy adobe dreamweaver cs6 mac pc only at $ 50

 Want buy adobe photoshop cs6 at cheap price? you can go to my webshop to buy it ,cheap dreamweaver cs6  full version .

  It is not a OEM or tryout version.

  We offer worldwide shippment .

  You can pay by paypal.

you can buy it at my website shop at only $50 low price cheap dreamweaver cs6 pc mac version and more other usefull design software tools.

 cheap adobe dreamweaver cs6 $50 

没有评论:

发表评论