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
/* Navbar */
.topnav {
display: block;
float: right;
font-family: helvetica;
font-size: 15px;
font-weight: bold;
height: 36px;
list-style-type: none;
margin: 0 auto;
position: relative;
text-transform: uppercase;
/*width: 655px;*/
}
.topnav li h1{
font-size:10px;
color: #545454;
}
.topnav li {
border-right: 1px solid #CFCFCF;
display: block;
float: left;
height: 45px;
margin-bottom: 0;
margin-left: 26px;
margin-top: 0;
padding-right: 10px;
}
.topnav li a {
color: #000000;
display: block;
float: left;
font-weight: bold;
height: 24px;
padding-left: 5px;
padding-top: 10px;
text-decoration: none;
}
.topnav li a:hover, .topnav li:hover, .topnav .hover{background:transparent url("bgHOVER.gif") no-repeat top right;}
.topnav li a.current, .topnav li a.current:hover {
color: #000000;
}
/* submenu */
.topnav .submenu{display:none;position:absolute;top:36px;background-color:#eee;border-top:4px solid #336666;border-bottom:2px solid #336666;z-index:10;}
.topnav .submenu ul{}
/* submenu_javascript styles */
.submenu_javascript{
width:280px;
font-size:10px;
}
.submenu_javascript ul{
list-style: none;
margin: 0px;
padding: 0px;
}
.submenu_javascript li{
width:100px;
height: 40px;
padding:10px;
background-color: silver;
float: left;
margin:10px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.submenu_javascript li:hover{
background-color: lightblue;
cursor: pointer;
}
.submenu_javascript li span{
font-size:smaller;
font-style: italic;
}
/* submenu_totorial styles */
.submenu_tutorial{
width:150px;
}
.submenu_tutorial ul{
list-style: none;
margin: 0px;
padding: 0px;
}
.submenu_tutorial li{
padding:5px;
}
.submenu_tutorial li:hover{
background-color:silver;
}
/* Navbar */
.topnav {
display: block;
float: right;
font-family: helvetica;
font-size: 15px;
font-weight: bold;
height: 36px;
list-style-type: none;
margin: 0 auto;
position: relative;
text-transform: uppercase;
/*width: 655px;*/
}
.topnav li h1{
font-size:10px;
color: #545454;
}
.topnav li {
border-right: 1px solid #CFCFCF;
display: block;
float: left;
height: 45px;
margin-bottom: 0;
margin-left: 26px;
margin-top: 0;
padding-right: 10px;
}
.topnav li a {
color: #000000;
display: block;
float: left;
font-weight: bold;
height: 24px;
padding-left: 5px;
padding-top: 10px;
text-decoration: none;
}
.topnav li a:hover, .topnav li:hover, .topnav .hover{background:transparent url("bgHOVER.gif") no-repeat top right;}
.topnav li a.current, .topnav li a.current:hover {
color: #000000;
}
/* submenu */
.topnav .submenu{display:none;position:absolute;top:36px;background-color:#eee;border-top:4px solid #336666;border-bottom:2px solid #336666;z-index:10;}
.topnav .submenu ul{}
/* submenu_javascript styles */
.submenu_javascript{
width:280px;
font-size:10px;
}
.submenu_javascript ul{
list-style: none;
margin: 0px;
padding: 0px;
}
.submenu_javascript li{
width:100px;
height: 40px;
padding:10px;
background-color: silver;
float: left;
margin:10px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.submenu_javascript li:hover{
background-color: lightblue;
cursor: pointer;
}
.submenu_javascript li span{
font-size:smaller;
font-style: italic;
}
/* submenu_totorial styles */
.submenu_tutorial{
width:150px;
}
.submenu_tutorial ul{
list-style: none;
margin: 0px;
padding: 0px;
}
.submenu_tutorial li{
padding:5px;
}
.submenu_tutorial li:hover{
background-color:silver;
}
/* Navbar */
.topnav {
display: block;
float: right;
font-family: helvetica;
font-size: 15px;
font-weight: bold;
height: 36px;
list-style-type: none;
margin: 0 auto;
position: relative;
text-transform: uppercase;
/*width: 655px;*/
}
.topnav li h1{
font-size:10px;
color: #545454;
}
.topnav li {
border-right: 1px solid #CFCFCF;
display: block;
float: left;
height: 45px;
margin-bottom: 0;
margin-left: 26px;
margin-top: 0;
padding-right: 10px;
}
.topnav li a {
color: #000000;
display: block;
float: left;
font-weight: bold;
height: 24px;
padding-left: 5px;
padding-top: 10px;
text-decoration: none;
}
.topnav li a:hover, .topnav li:hover, .topnav .hover{background:transparent url("bgHOVER.gif") no-repeat top right;}
.topnav li a.current, .topnav li a.current:hover {
color: #000000;
}
/* submenu */
.topnav .submenu{display:none;position:absolute;top:36px;background-color:#eee;border-top:4px solid #336666;border-bottom:2px solid #336666;z-index:10;}
.topnav .submenu ul{}
/* submenu_javascript styles */
.submenu_javascript{
width:280px;
font-size:10px;
}
.submenu_javascript ul{
list-style: none;
margin: 0px;
padding: 0px;
}
.submenu_javascript li{
width:100px;
height: 40px;
padding:10px;
background-color: silver;
float: left;
margin:10px;
-moz-border-radius: 15px;
border-radius: 15px;
}
.submenu_javascript li:hover{
background-color: lightblue;
cursor: pointer;
}
.submenu_javascript li span{
font-size:smaller;
font-style: italic;
}
/* submenu_totorial styles */
.submenu_tutorial{
width:150px;
}
.submenu_tutorial ul{
list-style: none;
margin: 0px;
padding: 0px;
}
.submenu_tutorial li{
padding:5px;
}
.submenu_tutorial li:hover{
background-color:silver;
}
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