| Normal button | Highlighted button |
|---|
- Create a new blank page.
Menukit can only be used on a html (xhtml) page that has been saved.Start Dreamweaver in an empty site and go to: File->New...
On the General tab, select category 'Basic page' and then select 'HTML' in the 'Basic page' panel. Create the page. Save the page as 'start.htm'.
- Clone an existing theme.
Theme 'Red7' is permanently locked, as indicated by the red padlockOpen Menukit and bring forward the Themes tab. Select a theme that has colors similar to the ones you want. We selected Red7 for this tutorial.
, because it is a system theme. When working with themes for CSS menus, you can choose to work either in 'px' units or in 'em' units. By default, CSS menus display all lengths in 'em' units.
For the purpose of this tutorial we need to work with 'px' units. Select 'px' in the Units selection list.
Click the 'Clone Theme' button
and enter the name you want
to give the new theme, 'MyRed7' (without quotes), in the dialog box that
opens. -
All 4 borders in a 2-dimensional button have the same color and size (thickness).The new theme has a 2-dimensional border of size 1px. The screenshot below shows the fields on the Themes tab where the 2-D border is defined.
-
Since we are defining a theme for a CSS menu, we have the option of working
with 3-dimensional borders. Press the 3-D Borders button
to switch to the layout for specifying individual borders.
As shown above, each of the 4 borders has a width of 1px. Although this is usually fine for most applications, in this tutorial we will make bigger buttons with wider borders so we can see them more clearly.
- To create the normal and highlighted buttons shown above in the introduction,
change the button's height to 32px and increase
the top padding from 1px to 3px. Set the 3-D Border
fields as shown here:
Press Save.
The MyRed7 theme is ready for use. Create 2 simple 3-button menus 'M1' and 'M2', for viewing the new theme. Position the menus absolutely at (10px, 0px) and (10px, 152px) as shown in the screenshots.
When a CSS menu is selected, the Menu tab includes a checkbox that offers a choice between using 3-D Buttons and 2-D Buttons.
To give M1 a 3-D appearance tick the 3-D Buttons checkbox:
To give M2 a 2-D appearance, don't tick the 3-D checkbox:
Make sure to set the Units to 'px' on the Menu tab.Your page should now look like start.htm in the support files.
-
Note The 3-D menu's border is 4px wide; the 2-D menu's border is 1px wide.The menu on the left was styled with the 'MyRed7' theme and the 3-D Buttons checkbox ticked. The example on the right is the same menu/theme combination without a tick in the checkbox.
Review
We saw in step 2 above that the new theme had a 2-dimensional border that was 1px wide. We did not modify the size of the 2-D border; it is still 1px as can be seen from the menu on the right of the demo.
Each theme includes separate sets of parameters for the 2-D and 3-D borders - they can be set independently.

Print