HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!-- Testimonial Slider from Baamboo Studio modified for The Mentor Group (http://www.mentor-group.com/clients--testimonials.html) -->
<!-- TestimonialS Slider - Free Weebly Widget by Baamboo Studio - Style 2 -->
<div class="testimonial_slider_2">
<input type="radio" name="slider_2" id="slide_2_1" checked />
<input type="radio" name="slider_2" id="slide_2_2" />
<input type="radio" name="slider_2" id="slide_2_3" />
<input type="radio" name="slider_2" id="slide_2_4" />
<div class="boo_inner clearfix">
<div class="slide_content">
<div class="testimonial_2">
<div class="content_2">
<p>Susan, I had to leave the workshop early so I didn't get a chance to say goodby or thank you and Rod for the terrific job you did. I am assuming that Leilani will get you a copy of the evaluations which were all really great to excellent. I just want to acknowledge both of you for the work you have done to be able to have that conversation with people in the way you do. I fully appreciate what it takes to get outside all your personal concerns and issues to be able to create that kind of safe space and make that kind of difference with people. I have shared you with my friends and have provided your phone and address to my consulting friends who do business consulting. They were very interested as there isn't a resource like that that comes our way very often. Again, thank you for the contribution you made to my organization, and for your courage and stand for altering the conversation about LGBT's.</p>
</div>
<div class="author_2">
<h3>Karen Sweetland</h3>
<h4>Valley Medical Center, San Jose, CA</h4>
</div>
</div>
</div>
<div class="slide_content">
<div class="testimonial_2">
<div class="content_2">
<p>Susan is not only passionate about her work and purpose in the world, she has education and experience that empower her to be highly effective in everything that she pursues. We took several courses together during her career at Brite and it was clear that she was well acquainted with many fields including anthropology, sociology, history, queer theologies, and a number of multicultural studies. Together, we served on the Brite Student Association on which Susan always went beyond the rest of us to engage our student body with the social justice issues in the community around us. Susan’s sensitivity to the needs of others is a brilliant compliment to her justice work. I know of this sensitivity because we also served together as hospice volunteers. Susan is always willing to listen to the perspectives of others and open to sharing her experiences with others to uplift and encourage. She is generous, always giving much more than is given to her.</p>
</div>
<div class="author_2">
<h3>Leah Jordan</h3>
<h4> MDiv, Brite Divinity School</h4>
</div>
</div>
</div>
<div class="slide_content">
<div class="testimonial_2">
<div class="content_2">
<p>The messenger is the message, and in this very good book, we find important messages that sadden, excite and affirm us as people who celebrate both our sexuality and our spirituality. Unitarian Universalists should feel very proud of having created a safe harbor for those discarded by others, and also challenged to work harder to make its culture more welcoming and inclusive.</p>
</div>
<div class="author_2">
<h3>Brian McNaught</h3>
<h4>Author of <i>Gay Issues in the Workplace</i></h4>
</div>
</div>
</div>
<div class="slide_content">
<div class="testimonial_2">
<div class="content_2">
<p>These personal stories will persuade even the most cynical that religion can be a force that is fully accepting and transforming. Indeed, the fulfillment of religion’s true promise is found among those who have courageously spoken here.</p>
</div>
<div class="author_2">
<h3>Lee Barker</h3>
<h4>President and Professor of Ministry, Meadville Lombard Theological School</h4>
</div>
</div>
</div>
</div>
<div id="controls">
<label for="slide_2_1"></label>
<label for="slide_2_2"></label>
<label for="slide_2_3"></label>
<label for="slide_2_4"></label>
</div>
</div>
/* General Styling and Structure
--------------------------------------------------------------------------------*/
html {
height: 100%;
}
body {
width: 100%;
color: #525252;
font-size: 14px;
font-family: 'Lato', Arial, sans-serif;
font-weight: 400;
line-height: 1;
background: #f2f6f7;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
}
/*** TestimonialS Slider - Free Weebly Widget by Baamboo Studio - Style 2 ***/
.testimonial_slider_2{
width:100%;
border: 1px solid #ebebeb;
overflow:hidden;
box-sizing:border-box;
padding-bottom:30px;
}
.testimonial_slider_2 input {
display: none;
}
.testimonial_slider_2 #slide_2_1:checked ~ .boo_inner { margin-left:0; }
.testimonial_slider_2 #slide_2_2:checked ~ .boo_inner { margin-left:-100%; }
.testimonial_slider_2 #slide_2_3:checked ~ .boo_inner { margin-left:-200%; }
.testimonial_slider_2 #slide_2_4:checked ~ .boo_inner { margin-left:-300%; }
.testimonial_slider_2 .boo_inner {
width:400%;
-webkit-transform: translateZ(0);
-webkit-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
-moz-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
-ms-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
-o-transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
-webkit-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
-moz-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
-ms-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
-o-transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000); /* easeInOutQuart */
}
.testimonial_slider_2 .slide_content{
width:25%;
float:left;
}
.testimonial_slider_2 #controls {
text-align:center;
}
.testimonial_slider_2 #controls label{
width:8px;
height:8px;
margin:0 2px;
display:inline-block;
background:#999; /* Change controls background color */
border-radius:4px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.testimonial_slider_2 #slide_2_1:checked ~ #controls label:nth-child(1),
.testimonial_slider_2 #slide_2_2:checked ~ #controls label:nth-child(2),
.testimonial_slider_2 #slide_2_3:checked ~ #controls label:nth-child(3),
.testimonial_slider_2 #slide_2_4:checked ~ #controls label:nth-child(4){
background:#000; /* Change controls background color when mouse click */
}
.testimonial_2 {
font-size: 16px !important;
color: #333; /* Change testimonial paragraph text color */
padding: 30px 30px 23px;
}
.content_2 {
position: relative;
padding-left: 30px;
margin-bottom: 30px;
}
.content_2:before,
.content_2:after {
content: "";
height: 15px;
width: 19px;
position: absolute;
}
.content_2:before {
background: url(icon_testimonial_2_before.png) 0 0 no-repeat;
left: 0;
}
.content_2:after {
background: url(icon_testimonial_2_after.png) 0 0 no-repeat;
margin: 5px 10px;
}
.testimonial_2 p {
display: inline;
}
.author_2 {
margin-left: 30px;
}
.author_2 h3 {
color: #333; /* Change author text color */
font-size: 13px;
font-weight: 600px;
padding: 0 0 5px;
}
.author_2 h4 {
color: #333; /* Change author text color */
font-size: 12px;
font-weight: 400;
padding: 0 0 5px;
}
.author_2 h4 a {
color: #999; /* Change company text link color */
text-decoration: none;
position: relative;
padding-bottom: 1px;
overflow: hidden;
border-bottom: 1px solid;
}
.author_2 h4 a:after {
background: #999; /* Change company border link background color */
height: 1px;
content: "";
position: absolute;
left: 0;
bottom: -1px;
width: 0;
-o-transition: all .3s;
-moz-transition: all .3s;
-webkit-transition: all .3s;
transition: all .3s;
}
.author_2 h4 a:hover {
color: #000; /* Change company text link color when mouse over */
border: none;
}
.author_2 h4 a:hover:after {
border-color: #000;
width: 100%;
}
$(document).ready(function(){
pagenum = 1;
function AutoRotate() {
var myele = null;
var allElements = document.getElementsByTagName('label');
for (var i = 0, n = allElements.length; i < n; i++) {
var myfor = allElements[i].getAttribute('for');
if ((myfor !== null) && (myfor == ('slide_2_' + pagenum))) {
allElements[i].click();
break;
}
}
if (pagenum == 4) {
pagenum = 1;
} else {
pagenum++;
}
}
setInterval(AutoRotate, 5000);
});
Also see: Tab Triggers