Elements
Source Code
Welcome to Docy ! Get familiar with the Docy products and explore their features, guides, tips and tools.
HTML Code Blocks
From a group of elements with one parent. Same as first one, but use this method if you are creating a popup from a list of elements in one container. Note that this method does not enable gallery mode, it just reduces the number of click event handlers; each item will be opened as a single popup. If you wish to enable gallery, add the gallery:{enabled:true} option.
For example, <code><section></code> should be wrapped as inline.
CSS Source Code
/*Drop Down Menu Start*/
#menu {
background: none repeat scroll 0 0 transparent;
border: 1px solid;
float: left;
font-family: calibri;
margin-top: 20px;
width: 100%;
}
#nav, #nav ul{
margin:0;
padding:0;
list-style-type:none;
list-style-position:outside;
position:relative;
line-height:1.5em;
z-index: 999;
}
#nav a {
color: #FFFFFF;
display: block;
font-family: helvetica;
font-size: 18px;
height: 23px;
margin-right: 4px;
padding-top: 8px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
}
#nav li:hover{
background-color:#00A4E1;
color:#ffffff;
}
#nav li {
background: none repeat scroll 0 0 #F16820;
float: left;
position: relative;
width: 135px;
}
#nav ul {
display: none;
margin-top: 0;
padding-top: 2px;
position: absolute;
}
#nav li, #nav ul {
margin-right: 3px;
width: 135px;
}
#nav li ul a {
width: 125px;
height: auto;
float: left;
text-align: left;
padding-left: 10px;
}
#nav ul ul{
top:auto;
}
#nav li ul ul {
left:12em;
margin:0px 0 0 10px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul{
display:none;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul{
display:block;
}
/*Drop Down Menu End*/
/*Drop Down Menu Start*/
#menu {
background: none repeat scroll 0 0 transparent;
border: 1px solid;
float: left;
font-family: calibri;
margin-top: 20px;
width: 100%;
}
#nav, #nav ul{
margin:0;
padding:0;
list-style-type:none;
list-style-position:outside;
position:relative;
line-height:1.5em;
z-index: 999;
}
#nav a {
color: #FFFFFF;
display: block;
font-family: helvetica;
font-size: 18px;
height: 23px;
margin-right: 4px;
padding-top: 8px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
}
#nav li:hover{
background-color:#00A4E1;
color:#ffffff;
}
#nav li {
background: none repeat scroll 0 0 #F16820;
float: left;
position: relative;
width: 135px;
}
#nav ul {
display: none;
margin-top: 0;
padding-top: 2px;
position: absolute;
}
#nav li, #nav ul {
margin-right: 3px;
width: 135px;
}
#nav li ul a {
width: 125px;
height: auto;
float: left;
text-align: left;
padding-left: 10px;
}
#nav ul ul{
top:auto;
}
#nav li ul ul {
left:12em;
margin:0px 0 0 10px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul{
display:none;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul{
display:block;
}
/*Drop Down Menu End*/
/*Drop Down Menu Start*/
#menu {
background: none repeat scroll 0 0 transparent;
border: 1px solid;
float: left;
font-family: calibri;
margin-top: 20px;
width: 100%;
}
#nav, #nav ul{
margin:0;
padding:0;
list-style-type:none;
list-style-position:outside;
position:relative;
line-height:1.5em;
z-index: 999;
}
#nav a {
color: #FFFFFF;
display: block;
font-family: helvetica;
font-size: 18px;
height: 23px;
margin-right: 4px;
padding-top: 8px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
}
#nav li:hover{
background-color:#00A4E1;
color:#ffffff;
}
#nav li {
background: none repeat scroll 0 0 #F16820;
float: left;
position: relative;
width: 135px;
}
#nav ul {
display: none;
margin-top: 0;
padding-top: 2px;
position: absolute;
}
#nav li, #nav ul {
margin-right: 3px;
width: 135px;
}
#nav li ul a {
width: 125px;
height: auto;
float: left;
text-align: left;
padding-left: 10px;
}
#nav ul ul{
top:auto;
}
#nav li ul ul {
left:12em;
margin:0px 0 0 10px;
}
#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul{
display:none;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul{
display:block;
}
/*Drop Down Menu End*/
JavaScript Code
3 Comment
Issac Wise
Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.
ReplyHans Down
Thenks Demo User for Wouldn’t it be better practice to use get_the_title.
ReplyHans Down
Dropped a clanger up the kyver easy peasy vagabond victoria sponge Charles tinkety tonk old fruit argy.!
ReplyChauffina Carr
Wouldn’t it be better practice to use get_the_title(..) in this case? directly accessing the post object’s data member would bypass applying filters and enforcing protected and private settings, unless that’s explicitly desired.
Reply