Revisions
- September 25, 2012 @ 02:14:53 [Current Revision] by PeterLugg
- September 25, 2012 @ 02:13:17 by PeterLugg
- September 25, 2012 @ 02:11:57 by PeterLugg
Revision Differences
September 25, 2012 @ 02:11:57 | Current Revision | ||
---|---|---|---|
Content | |||
Added: This is bullet proof down to IE7- Yea! | |||
Added: As used by WooThemes for their great work - check out this <a href="http:// jsfiddle.net/ jameskoster/qSXdm/2/" target="_blank">JS Fiddle</a>. | |||
Added: <iframe style="width: 100%; height: 300px;" src="http://jsfiddle.net/ jameskoster/qSXdm/ 2/embedded/" frameborder="0" width="320" height="240"></iframe> | |||
Added: [html]<ul class= "menu"> | |||
Added: <li class= "parent">< a href="#"> Parent</a> | |||
Added: <ul> | |||
Added: <li>< a href="#"> Child</a></li> | |||
Added: <li class= "parent">< a href="#"> Link</a> | |||
Added: <ul> | |||
Added: <li>< a href=" #">Grand Child</a></li> | |||
Added: <li class= "parent">< a href="#"> Link</a> | |||
Added: <ul> | |||
Added: <li>< a href=" #">Great Grand Child</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li class= "parent">< a href="#"> Link</a> | |||
Added: <ul> | |||
Added: <li>< a href=" #">Great Great Grand Child</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li class= "parent">< a href="#"> Link</a> | |||
Added: <ul> | |||
Added: <li>< a href=" #">Great Great Great Grand Child</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: </ul> | |||
Added: </li> | |||
Added: </ul> | |||
Added: </li> | |||
Added: </ul> | |||
Added: </li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: </ul> | |||
Added: </li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: </ul> | |||
Added: </li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: <li>< a href="#"> Link</a></li> | |||
Added: </ul>[/html] | |||
Added: Just use this css: | |||
Added: [css]ul.menu { | |||
Added: position: relative; | |||
Added: margin-bottom:0; | |||
Added: li { | |||
Added: position: relative; | |||
Added: float: left; | |||
Added: zoom:1; | |||
Added: list-style: none; | |||
Added: a { | |||
Added: display: block; | |||
Added: padding:.382em 1em; | |||
Added: background:#eee; | |||
Added: -webkit-box-sizing: border-box; | |||
Added: -moz-box-sizing: border-box; | |||
Added: box-sizing: border-box; | |||
Added: } | |||
Added: &.parent { / / Styles applied to all parent list items | |||
Added: > a:after { | |||
Added: content:" \2193"; | |||
Added: line-height:1; | |||
Added: margin-left:1em; | |||
Added: float:right; | |||
Added: } | |||
Added: } | |||
Added: } | |||
Added: /* CHILDREN */ | |||
Added: ul { | |||
Added: width:10em; | |||
Added: visibility: hidden; // Optionally use display: none to avoid horizontal scrollbars | |||
Added: position: absolute; | |||
Added: top:100%; | |||
Added: left: 0; | |||
Added: z-index: 9999; | |||
Added: margin:0; | |||
Added: li { | |||
Added: float: none; | |||
Added: a { | |||
Added: width: 100%; | |||
Added: display: inline-block; | |||
Added: } | |||
Added: &.parent { | |||
Added: > a:after { | |||
Added: content:" \2192"; | |||
Added: } | |||
Added: } | |||
Added: } | |||
Deleted: | Added: } | ||
Added: ul ul { | |||
Added: left:100%; | |||
Added: top:0; | |||
Added: } | |||
Added: li:hover > ul { | |||
Added: visibility: visible; | |||
Added: } | |||
Added: }[/css] |
Note: Spaces may be added to comparison text to allow better line wrapping.
No comments yet.