#header{
overflow: visible; /* Let menu content overflow outside the header */
}
#header ul { /* Menu Name */
margin-top: 1em;
}
#header .ui-btn-corner-all {
/* border-radius: 0; /* Make the menu button squarish */
}
#header ul ul { /* Menu Item List */
position: absolute; /* Position absolutely */
display: none; /* Hide */
z-index:500; /* Ensure visibility over other elements on page */
margin-top: 0px; /* Bring menu closer to button; not needed on mobile */
}
#header ul ul li {
width: 150px; /* Fixed width menu items*/
display: block; /* JQM makes a inline-blocks... reset it to block */
}
#header ul ul li a {
white-space: normal; /* Stop long menu names from truncating */
}
#header ul:hover ul {
/* display: block; /* Display menu on hover over parent */
}
#menu-left {
float: left;
margin-left:0.5em;
}
#menu-right {
float: right;
margin-right:0.5em;
}
#menu-left ul {
margin-left:0.5em;
}
#menu-right ul {
margin-right: 0.5em;
right: 0em;
}
#home .ui-header {
height: 75px;
}
#home .ui-header h1 {
font-size: 16pt;
color:#FD7E00;
margin-bottom:0px;
}
#txtSpan {
position: relative;
display: inline-block;
top: -5px; /* Doesnt seem possible to vertically center otherwise */
}
#home .ui-header h2 {
font-size: 14pt;
margin-top: 0px;
}
/*=====================================================*/
/*! jQuery Mobile v1.0.1 jquerymobile.com | jquery.org/license */
.ui-bar-a{border:1px solid #2a2a2a;background:#111;color:#fff;font-weight:bold;text-shadow:0 -1px 1px #000;background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#111));background-image:-webkit-linear-gradient(#3c3c3c,#111);background-image:-moz-linear-gradient(#3c3c3c,#111);background-image:-ms-linear-gradient(#3c3c3c,#111);background-image:-o-linear-gradient(#3c3c3c,#111);background-image:linear-gradient(#3c3c3c,#111)}.ui-bar-a,.ui-bar-a input,.ui-bar-a select,.ui-bar-a...
JavaScript
$('body').bind('hideOpenMenus', function(){
$("ul:jqmData(role='menu')").find('li > ul').hide();
});
var menuHandler = function(e) {
$('body').trigger('hideOpenMenus');
$(this).find('li > ul').show();
e.stopPropagation();
};
$("ul:jqmData(role='menu') li > ul li").click(function(e) {
$('body').trigger('hideOpenMenus');
e.stopPropagation();
});
$('body').delegate("ul:jqmData(role='menu')",'click',menuHandler);
$('body').click(function(e){
$('body').trigger('hideOpenMenus');
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.