5
<title>Example: Skinning Menus Created Using the MenuNav Node Plugin</title>
6
<link rel="stylesheet" href="http://yui.yahooapis.com/3.4.0pr3/build/cssgrids/grids-min.css">
7
<link rel="stylesheet" href="../assets/css/main.css">
8
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
9
<script src="../../build/yui/yui-min.js"></script>
14
<h1>Example: Skinning Menus Created Using the MenuNav Node Plugin</h1>
19
<div id="main" class="yui3-u">
20
<div class="content"><div class="intro">
22
This example demonstrates how to skin a menu built using the MenuNav Node Plugin to look like the
23
menus on <a href="http://www.flickr.com">Flickr</a>
27
<div class="example newwindow">
28
<a href="node-menunav-7-example.html" target="_blank" class="button">
29
View Example in New Window
33
<h2>Creating A Custom Skin</h2>
35
Skinning the menus created using the MenuNav Node Plugin is done using CSS. The stylesheet used
36
for other MenuNav Node Plugin examples is a minified version of the node-menunav-core.css and
37
node-menunav-skin.css files. The node-menunav-core.css file includes foundational styling that
38
controls basic layout and positioning, whereas the node-menunav-skin.css file is used to apply
39
colors, borders, padding, etc.
43
Skinning can be accomplished by either overriding the styles defined in the node-menunav-skin.css
44
file, or by creating an entirely new skin file. In either case, place custom styles in a separate
45
file to simplify integrating with YUI updates.
49
When creating a custom skin, use the node-menunav-core.css and node-menunav-skin.css files as a
50
reference. Also consult the <a href="index.html#css-reference">CSS reference</a>
51
section of the MenuNav Node Plugin landing page, as it provides a complete list of all of the class
52
names used by the MenuNav Node Plugin along with when and to what element(s) they are applied.
57
<div id="sidebar" class="yui3-u">
63
<h2 class="no-toc">Examples</h2>
70
<li data-description="Creating left navigation using the MenuNav Node Plugin.">
71
<a href="menunav-leftnav.html">Basic Left Nav</a>
76
<li data-description="Creating top navigation using the MenuNav Node Plugin">
77
<a href="node-menunav-2.html">Basic Top Nav</a>
82
<li data-description="Creating menu button navigation using the MenuNav Node Plugin">
83
<a href="node-menunav-3.html">Menu Button Top Nav</a>
88
<li data-description="Creating split button navigation using the MenuNav Node Plugin">
89
<a href="node-menunav-4.html">Split Button Top Nav</a>
94
<li data-description="Adding shadows to submenus of a left nav using the MenuNav Node Plugin">
95
<a href="node-menunav-5.html">Left Nav with Submenus with Shadows</a>
100
<li data-description="Adding rounded corners to submenus of a left nav using the MenuNav Node Plugin">
101
<a href="node-menunav-6.html">Left Nav With Submenus With Rounded Corners</a>
106
<li data-description="Skining a menu built using the MenuNav Node Plugin to look like the menus on Flickr">
107
<a href="node-menunav-7.html">Skinning Menus Created Using the MenuNav Node Plugin</a>
121
<script src="../assets/vendor/prettify/prettify-min.js"></script>
122
<script>prettyPrint();</script>