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.
-
tab 1
tab description
-
tab 2
tab description
-
tab3
tab description
-
tab4
tab description
-
tab5
tab description
tab1
click to close
tab 2
click to close
tab 3
click to close
tab 4
click to close
tab 5
click to close
-
tab 1
tab description
-
tab 2
tab description
-
tab3
tab description
-
tab4
tab description
-
tab5
tab description
tab1
click to close
tab 2
click to close
tab 3
click to close
tab 4
click to close
tab 5
click to close
-
tab 1
tab description
-
tab 2
tab description
-
tab3
tab description
-
tab4
tab description
-
tab5
tab description
tab1
click to close
tab 2
click to close
tab 3
click to close
tab 4
click to close
tab 5
click to close
CSS Source Code
/********tabs start********/
.boxtabs {
float: left;
margin-top: -12px;
width: 100%;
}
.boxtabs a{
color: #000000;
display: block;
font-size: 16px;
margin-top: 0;
outline: medium none;
padding-right: 20px;
padding-top: 6px;
text-decoration: none;
}
.boxtabs h1{
color:#000000;
font-size:12px;
}
.boxtabs img {
border: medium none;
display: block;
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: 6px;
max-height: 185px;
max-width: 300px;
width: auto;
}
ul.tabs2 li:last-of-type {
border: medium none;
}
ul.tabs2 {
border-bottom: medium none;
border-radius: 3px 0 0 0;
float: left;
height: 60px;
list-style: none outside none;
margin: 2px 0 0;
padding: 0 0 17px;
width: 792px;
}
ul.tabs2 li a {
color: #000000;
display: block;
font-size: 16px;
margin-top: 0;
outline: medium none;
padding-right: 20px;
padding-top: 6px;
text-decoration: none;
}
/*ul.tabs2 li a:hover {
background: #ccc;
}*/
html ul.tabs2 li.active, html ul.tabs2 li.active a:hover { /*--Makes sure that the active tab does not listen to the hover properties--*/
background: #fff;
}
.tab2_container {
background: none repeat scroll 0 0 #FAFAFA;
border-top: 1px solid #CFCFCF;
clear: both;
color: #000000;
float: left;
overflow: hidden;
width: 100%;
}
#tab5, #tab6, #tab7, #tab8, #tab9{
border-bottom: 1px solid #CFCFCF;
}
.tab2_content {
font-size: 1.2em;
padding: 20px 20px 3px;
}
.tab2_content h2 {
cursor: pointer;
font-size: 12px;
font-weight: normal;
margin: 0;
padding: 0;
text-align: center;
text-transform: capitalize;
width: 100%;
}
/********tabs end********/
/********tabs start********/
.boxtabs {
float: left;
margin-top: -12px;
width: 100%;
}
.boxtabs a{
color: #000000;
display: block;
font-size: 16px;
margin-top: 0;
outline: medium none;
padding-right: 20px;
padding-top: 6px;
text-decoration: none;
}
.boxtabs h1{
color:#000000;
font-size:12px;
}
.boxtabs img {
border: medium none;
display: block;
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: 6px;
max-height: 185px;
max-width: 300px;
width: auto;
}
ul.tabs2 li:last-of-type {
border: medium none;
}
ul.tabs2 {
border-bottom: medium none;
border-radius: 3px 0 0 0;
float: left;
height: 60px;
list-style: none outside none;
margin: 2px 0 0;
padding: 0 0 17px;
width: 792px;
}
ul.tabs2 li a {
color: #000000;
display: block;
font-size: 16px;
margin-top: 0;
outline: medium none;
padding-right: 20px;
padding-top: 6px;
text-decoration: none;
}
/*ul.tabs2 li a:hover {
background: #ccc;
}*/
html ul.tabs2 li.active, html ul.tabs2 li.active a:hover { /*--Makes sure that the active tab does not listen to the hover properties--*/
background: #fff;
}
.tab2_container {
background: none repeat scroll 0 0 #FAFAFA;
border-top: 1px solid #CFCFCF;
clear: both;
color: #000000;
float: left;
overflow: hidden;
width: 100%;
}
#tab5, #tab6, #tab7, #tab8, #tab9{
border-bottom: 1px solid #CFCFCF;
}
.tab2_content {
font-size: 1.2em;
padding: 20px 20px 3px;
}
.tab2_content h2 {
cursor: pointer;
font-size: 12px;
font-weight: normal;
margin: 0;
padding: 0;
text-align: center;
text-transform: capitalize;
width: 100%;
}
/********tabs end********/
/********tabs start********/
.boxtabs {
float: left;
margin-top: -12px;
width: 100%;
}
.boxtabs a{
color: #000000;
display: block;
font-size: 16px;
margin-top: 0;
outline: medium none;
padding-right: 20px;
padding-top: 6px;
text-decoration: none;
}
.boxtabs h1{
color:#000000;
font-size:12px;
}
.boxtabs img {
border: medium none;
display: block;
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: 6px;
max-height: 185px;
max-width: 300px;
width: auto;
}
ul.tabs2 li:last-of-type {
border: medium none;
}
ul.tabs2 {
border-bottom: medium none;
border-radius: 3px 0 0 0;
float: left;
height: 60px;
list-style: none outside none;
margin: 2px 0 0;
padding: 0 0 17px;
width: 792px;
}
ul.tabs2 li a {
color: #000000;
display: block;
font-size: 16px;
margin-top: 0;
outline: medium none;
padding-right: 20px;
padding-top: 6px;
text-decoration: none;
}
/*ul.tabs2 li a:hover {
background: #ccc;
}*/
html ul.tabs2 li.active, html ul.tabs2 li.active a:hover { /*--Makes sure that the active tab does not listen to the hover properties--*/
background: #fff;
}
.tab2_container {
background: none repeat scroll 0 0 #FAFAFA;
border-top: 1px solid #CFCFCF;
clear: both;
color: #000000;
float: left;
overflow: hidden;
width: 100%;
}
#tab5, #tab6, #tab7, #tab8, #tab9{
border-bottom: 1px solid #CFCFCF;
}
.tab2_content {
font-size: 1.2em;
padding: 20px 20px 3px;
}
.tab2_content h2 {
cursor: pointer;
font-size: 12px;
font-weight: normal;
margin: 0;
padding: 0;
text-align: center;
text-transform: capitalize;
width: 100%;
}
/********tabs 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