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.
<body>
<header>
<h1> Module 3 Project: an online resume </h1>
</header>
<div class="flex-container">
<div id="left">
<img src="https://moiglobal.com/wp-content/uploads/warren-buffett-dbw2-1024x1024.jpg" alt="avatar of a man">
<h2 id="name"> Jakub <br> Kessler </h2>
<h3 id="jobTitle"> Marketing Manager </h3>
<hr id="mainHR">
<div>
<h3> Contact </h3>
<h4> Address </h4>
<p> Street 1/1,<br>61-111 Poznań,<br> Poland </p>
<h4> Email </h4>
<p>jakub@email.com</p>
<h4> Phone </h4>
<p>+48 666 999 666</p>
</div>
<h3> Profile </h3>
<p id="justified"> I don't assume anybody is here to read about my profile. After all it's a CSS course. So instead of thinking about what should I write here - I researched a bit on w3school trying to make the result of the excercise a bit more spiffy.
</p>
</div>
<div id="right">
<h3>Experience</h3>
<hr>
<h4>Marketing Communication Manager</h4>
<h5>Volkswagen Group Poland, 2018 - ongoing </h5>
<h4>Key Account Manager</h4>
<h5>Beiersdorf Poland, 2017 - 2018 </h5>
<h4>Brand Manager</h4>
<h5>Beiersdorf Germany, 2014 - 2017 </h5>
<h3>Education</h3>
<hr>
<h4>Poznan University of Economics</h4>
<h5>Masters Degree in International Business, 2005 - 2009 </h5>
<h3>Skills</h3>
<hr>
<ul>
<li>CSS (soon)</li>
<li>HTML (soon)</li>
<li>JavaScript (soon)</li>
<li>PHP (soon)</li>
<li>SQL (soon)</li>
</ul>
<h3 class="funky">My Favourites</h3>
<hr>
<ul class="funky">
<li>Learning new stuff</li>
<li>Reading</li>
<li>BJJ</li>
<li>Sailing</li>
<li>Skiing</li>
</ul>
</div>
</div>
<footer>
Get in touch with me here: <a href="https://www.instagram.com"> Instagram,</a> <a href="https://www.youtube.com"> Youtube,</a> or <a href="https://www.facebook.com">Facebook</a>
</footer>
</body>
body {
padding: 0 10% 4% 10%;
font-family: Rubik, Arial, sans-serif;}
a:link {font-weight: bold;}
a:visited {color: hsl(75,100%,40%);}
/* STYLES ALL HEADERS */
/*h1 is the tag seen as 'header' of the document; sits above both columns */
h1 {
background: black;
color: white;
margin-bottom: 0px;
padding: 6px 18px;
font-size: 1em;}
h3 {
font-size: 1.6em;
margin-top: 0; margin-bottom: 10px;
font-family: Spectral, "Arial Black", sans-serif;}
h4 {
margin-top: 10px; margin-bottom: 10px;
font-size: 1em;}
h5 {
font-style: italic;
font-weight: 400;
font-size:0.9em;
margin-top:5px;
}
/*adjusts the h2 of the name, which is located under the picture */
#name {
font-size: 2.8em; font-weight: 900;
margin-top: 15px; margin-bottom:15px;
line-height: 100%;
font-family: Spectral, "Arial Black", sans-serif;
}
/*adjusts the h3 dedicated to the Job Title only - located under the name */
#jobTitle {
font-size: 1em; font-weight: 400;
font-family: Rubik;}
/* END OF STYLING FOR HEADERS */
/*CREATES A CONTAINER FOR THE TWO COLUMNS */
.flex-container {
display: flex;}
/* STYLING FOR THE LEFT COLUMN */
/*sets the properties of the left column */
#left {
width: 30%;
box-sizing: border-box;
background: hsl(0,0%, 90%);
text-align: center;}
/*box with Contact details in the left column*/
div div div {
position: relative;
border: 2px hsl(0, 0%, 0%) solid;
box-sizing: border-box;
width: 60%;
margin-left: auto;
margin-right: auto;
margin-top: 55px;
margin-bottom: 30px;
min-height: 250px;
padding-bottom: 4%;
z-index: 0;}
/*header which overlaps the border; includes Contact details */
div div div h3 {
position: absolute;
top: -8%;
right: 20%;
left: 20%;
z-index: 1;
text-align: center;
background: hsl(0,0%, 90%);}
div div div h4 {
margin-top: 10%;}
div div div p {
margin-top: 2%;
font-size: 1em;}
/*sets the properties of the right column */
#right {
width: 70%;
box-sizing: border-box;
padding: 50px 5%;
margin: 0;
}
/*styling for the image */
img {
width: 33%;
display: block;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
border-radius: 50%;
border: 2px black solid;
}
/* end of styling for the images */
/*styling for <hr> - horizontal lines */
/*basic lines, all sections, both columns */
hr {
display:block;
background-color: black;
text-align:center;
}
/* short line under the 'marketing manager' in the left column */
#mainHR {
width: 25%;
border: 2px solid black;
margin-top: 20px;
}
#justified {text-align:justify; margin-left: 20%; margin-right: 20%; margin-bottom: 50px;}
.funky {
transition: color 1s, font-size 2s;
}
.funky:hover {
color: blue;
font-size: 1.2em;
}
Also see: Tab Triggers