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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<div class="outerdiv">
<div class="innerdiv">
<!-- div1 -->
<div class="div1 eachdiv">
<div class="userdetails">
<div class="imgbox">
<img src="https://raw.githubusercontent.com/RahulSahOfficial/testimonials_grid_section/5532c958b7d3c9b910a216b198fdd21c73112d84/images/image-daniel.jpg" alt="">
</div>
<div class="detbox">
<p class="name">Daniel Clifford</p>
<p class="designation">Verified Graduate</p>
</div>
</div>
<div class="review">
<h4>I received a job offer mid-course, and the subjects I learned were current, if not more so, in the company I joined. I honestly feel I got every penny’s worth.</h4>
<p>“ I was an EMT for many years before I joined the bootcamp. I’ve been looking to make a transition and have heard some people who had an amazing experience here. I signed up for the free intro course and found it incredibly fun! I enrolled shortly thereafter. The next 12 weeks was the best - and most grueling - time of my life. Since completing the course, I’ve successfully switched careers, working as a Software Engineer at a VR startup. ”</p>
</div>
</div>
<!-- div2 -->
<div class="div2 eachdiv">
<div class="userdetails">
<div class="imgbox">
<img src="https://raw.githubusercontent.com/RahulSahOfficial/testimonials_grid_section/5532c958b7d3c9b910a216b198fdd21c73112d84/images/image-jonathan.jpg" alt="">
</div>
<div class="detbox">
<p class="name">Jonathan Walters</p>
<p class="designation">Verified Graduate</p>
</div>
</div>
<div class="review">
<h4>The team was very supportive and kept me motivated</h4>
<p>“ I started as a total newbie with virtually no coding skills. I now work as a mobile engineer for a big company. This was one of the best investments I’ve made in myself. ”</p>
</div>
</div>
<!-- div3 -->
<div class="div3 eachdiv">
<div class="userdetails">
<div class="imgbox">
<img src="https://raw.githubusercontent.com/RahulSahOfficial/testimonials_grid_section/5532c958b7d3c9b910a216b198fdd21c73112d84/images/image-kira.jpg" alt="">
</div>
<div class="detbox">
<p class="name dark">Kira Whittle</p>
<p class="designation dark">Verified Graduate</p>
</div>
</div>
<div class="review dark">
<h4>Such a life-changing experience. Highly recommended!</h4>
<p>“ Before joining the bootcamp, I’ve never written a line of code. I needed some structure from professionals who can help me learn programming step by step. I was encouraged to enroll by a former student of theirs who can only say wonderful things about the program. The entire curriculum and staff did not disappoint. They were very hands-on and I never had to wait long for assistance. The agile team project, in particular, was outstanding. It took my learning to the next level in a way that no tutorial could ever have. In fact, I’ve often referred to it during interviews as an example of experience. It certainly helped me land a job as a full-stack 100% recommend! ”</p>
</div>
</div>
<!-- div4 -->
<div class="div4 eachdiv">
<div class="userdetails">
<div class="imgbox">
<img src="https://raw.githubusercontent.com/RahulSahOfficial/testimonials_grid_section/5532c958b7d3c9b910a216b198fdd21c73112d84/images/image-jeanette.jpg" alt="">
</div>
<div class="detbox">
<p class="name dark">Jeanette Harmon</p>
<p class="designation dark">Verified Graduate</p>
</div>
</div>
<div class="review dark">
<h4>An overall wonderful and rewarding experience</h4>
<p>“ Thank you for the wonderful experience! I now have a job I really enjoy, and make a good living while doing something I love. ”</p>
</div>
</div>
<!-- div5 -->
<div class="div5 eachdiv">
<div class="userdetails">
<div class="imgbox">
<img src="https://raw.githubusercontent.com/RahulSahOfficial/testimonials_grid_section/5532c958b7d3c9b910a216b198fdd21c73112d84/images/image-patrick.jpg" alt="">
</div>
<div class="detbox">
<p class="name">Patrick Abrams</p>
<p class="designation">Verified Graduate</p>
</div>
</div>
<div class="review">
<h4>Awesome teaching support from TAs who did the bootcamp themselves. Getting guidance from them and learning from their experiences was easy.</h4>
<p>“ The staff seem genuinely concerned about my progress which I find really refreshing. The program gave me the confidence necessary to be able to go out in the world and present myself as a capable junior developer. The standard is above the rest. You will get the personal attention you need from an incredible community of smart and amazing people. ”</p>
</div>
</div>
</div>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a><br>
Coded by <a href="https://www.instagram.com/developer_sah/" target="_blank">Rahul Sah</a>.
</div>
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:[email protected];600&display=swap');
body{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Barlow Semi Condensed', sans-serif;
}
a:link,a:active,a:visited,a:hover{
color:#3f51b5;
}
.outerdiv
{
width: 100%;
min-height: 100vh;
background: #EDF2F8;
display: flex;
align-items: center;
justify-content: center;
}
.innerdiv
{
transform: scale(0.9);
margin: 1rem;
display: grid;
grid-gap: 1.5rem;
grid-template-rows: repeat(2,22rem);
grid-template-columns: repeat(4,17rem);
}
.eachdiv
{
padding: 1rem 2rem;
border-radius: 0.8rem;
box-shadow: 5px 5px 20px #6d6b6b6b;
color: white;
}
.div1
{
background: #733FC8;
grid-column: 1/3;
grid-row: 1/2;
background-image: url(https://raw.githubusercontent.com/RahulSahOfficial/testimonials_grid_section/5532c958b7d3c9b910a216b198fdd21c73112d84/images/bg-pattern-quotation.svg);
background-repeat: no-repeat;
background-position-x: 25rem;
}
.div2
{
background:#49556B;
grid-column: 3/4;
grid-row: 1/2;
}
.div3
{
background: white;
grid-column: 4/5;
grid-row: 1/3;
color: black;
}
.div4
{
background: white;
grid-column: 1/2;
grid-row: 2/3;
color: black;
}
.div5
{
background: #18202D;
grid-column: 2/4;
grid-row: 2/3;
}
.userdetails
{
display: flex;
}
.imgbox
{
margin-right: 1rem;
}
.imgbox img
{
border-radius: 50%;
width: 2rem;
border: 2px solid #cec5c5;
}
.detbox
{
display: flex;
flex-direction: column;
justify-content: center;
}
.detbox p
{
margin: 0;
}
.detbox .name
{
color: hsl(0, 0%, 81%);
font-size: 0.9rem;
margin-bottom: 0.1rem;
font-weight: 600;
}
.detbox .name.dark
{
color: #49505A;
}
.detbox .designation
{
color: hsl(0, 0%, 81%);
opacity: 50%;
font-size: 0.8rem;
}
.detbox .designation.dark
{
color: #49505A;
}
.review h4
{
font-size: 1.4rem;
color: #F3DEFF;
font-weight: 600;
line-height: 1.5;
margin-bottom: 0.8rem;
}
.review.dark h4{
color:#4B5258;
}
.review p
{
font-size: 0.95rem;
color: #F3DEFF;
font-weight: 500;
opacity: 50%;
line-height: 1.5;
}
.review.dark p{
color: #0e0e0e;
}
.attribution
{
font-size: 1rem;
line-height: 1.5;
position: fixed;
bottom: 1rem;
right: 1rem;
text-align: right;
}
.attribution a
{
text-decoration: none;
}
@media only screen and (max-width: 1000px)
{
.innerdiv
{
transform: scale(0.7);
}
}
@media only screen and (max-width: 800px)
{
.innerdiv
{
transform: scale(0.6);
}
}
@media only screen and (max-width: 600px)
{
.div1 {
background-position-x: 10rem;
}
.innerdiv
{
display: flex;
flex-direction: column;
transform: scale(1);
margin: 2rem;
margin-bottom: 5rem;
}
.attribution
{
position: relative;
}
}
Also see: Tab Triggers