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 URL's 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 it's URL and the proper URL extention.
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.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
$('#bookmarkme').click(function() {
if (window.sidebar && window.sidebar.addPanel) { // Mozilla Firefox Bookmark
window.sidebar.addPanel(document.title, window.location.href, '');
} else if (window.external && ('AddFavorite' in window.external)) { // IE Favorite
window.external.AddFavorite(location.href, document.title);
} else if (window.opera && window.print) { // Opera Hotlist
this.title = document.title;
return true;
} else { // webkit - safari/chrome
alert('Press ' + (navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Command/Cmd' : 'CTRL') + ' + D to bookmark this page.');
}
});
});
</script>
<div class="container-fluid">
<header>
<div class="row">
<div class="col-md-4">
<!--logo-->
<img id="logo" src="https://s17.postimg.org/ixzdcv5f3/logo-and-name.png">
</div>
<div class="col-md-2">
<!--blank space-->
</div>
<div class="col-md-6">
<!--menu-->
<p id="menu"><a id="btn" class="btn btn-primary" href="#top"><b>About</b></a> <a id="btn" class="btn btn-primary" href="#portfolio"><b>Portfolio</b></a> <a class="btn btn-primary" id="btn" href="#contact"><b>Contact</b></a></p>
</div>
</div>
</header>
<div class="infocontainer">
<div class="row">
<div class="col-md-8" id="colsdiv">
<br/><br/>
<h2><b><a name="about">About me</a></b></h2>
<br/>
<b>My name is Gonçalo Pedro and besides many other things I am a WebDevelopper, WebDesigner and Enterpeneur. I work mostly with developping websites and web-based programs from scratch using HTML, CSS, JavaScript and NodeJS... I also do automation of different kind through iMacros and JavaScript! You can see my work in this webpage and in my <a href="https://github.com/gpedro34" target="_blank">GitHub</a>.</b>
</div>
<div class="col-md-4" id="colsdiv">
<img src="https://s11.postimg.org/3mbvoekgj/logo.png">
</div>
<a name="portfolio"></a>
</div>
<br/><br/><br><br>
<div class="row">
<div class="col-md-5" id="colsdiv">
<a href="https://codepen.io/gpedro34/full/gWmawM/" target="_blank"><img src="https://s13.postimg.org/pxysjn0bn/tribute_ps.png" id="portf-img"></a>
<br><br>
<a href="http://www.burstcoin.pt" target="_blank"><img src="https://s13.postimg.org/rbqfexzkz/burst_ps.png" id="portf-img"></a>
</div>
<div class="col-md-7" id="colsdiv">
<br/>
<h2><b>My Portfolio</b></h2>
<br/>
<b>You can see my portfolio on the left side... As you can see, I didn't started working in WebDevelopment/WebDesign long ago so my portfolio is not that big but it will increase over time, so if you think what i have right now, its not enough yet, I suggest that you add my webpage to your <a id="bookmarkme" href="#" rel="sidebar" title="bookmark this page">Bookmarks/Favourites</a> and check it from time to time to see my improvements... You may become amazed with how fast I learn!</b>
</div>
<br/>
<a name="contact"></a>
</div>
<br/><br/><br><br><br>
<div class="row">
<div class="col-md-7" id="colsdiv">
<br/>
<h2><b>Contact me</b></h2>
<br/>
<p><b>If you want to propose me some job, or have some suggestions about how i can improve my work, feel free to contact me throught the contact form on the right (fast response timeframe), throught my cell-phone: +351 91 706 10 69 (immediate to fast response timeframe) or through the social networks below (slowest response timeframe)... I promise to answer ASAP!</b>
<br/><br/>
<a href="https://www.facebook.com/gpedro34" target="_blank"><img src="https://s14.postimg.org/3t2fu5n35/facebook-logo-4.png" style="width:9%"></a>
<a href="https://github.com/gpedro34" target="_blank"><img src="https://s3.postimg.org/eez3l6cgf/github.png" style="zoom:30%"></a></p>
</div>
<div class="col-md-5">
<form method="POST" action="http://formspree.io/gpedro34@gmail.com">
<br>
<input id="name" name="name" type="text" size="45" placeholder="Your Name" required="">
<input type="email" name="email" size="45" placeholder="Your E-Mail" required="">
<input id="phone" name="phone" type="phone" size="45" placeholder="Your Phone Number" required="">
<textarea name="message" rows="5" cols="47" placeholder="Your Message" required=""></textarea><br>
<input type="text" name="_gotcha" style="display:none" />
<input type="hidden" name="_subject" value="Someone sent you a message from your Portfolio Page!" />
<button id="btn" type="submit" class="btn btn-primary"><b>Send</b></button>
</form>
</div>
</div>
</div>
<footer>
<b>gpedro © 2017 - All rights reserved</b>
</footer>
</div>
header{
background-color: #66b3ff;
position: fixed;
width: 101.16%;
height: 65px;
top: 0px;
left: 0px;
align: center;
z-index:20;
}
.infocontainer{
background-color: #99ccff;
width: 80%;
height: auto;
position: relative;
top: 100px;
left: 10%;
padding: 55px 60px 50px 60px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 10px;
}
footer{
background-color: #3399ff;
position: relative;
width: 101.7%;
height: 75px;
bottom: -140px;
left: -15px;
padding: 25px 0px 0px 0px;
text-align: center;
}
body {
background-color: #b3d9ff;
}
#btn {
color: #000066;
}
.btn-primary :hover{
color: #b3d1ff;
}
input {
background-color: #80bfff;
border-style: none none outset none;
border-color: #f2f2f2;
border-radius: 20px;
padding: 0px 0px 0px 10px;
}
textarea {
background-color: #80bfff;
border-style: none none outset none;
border-color: #f2f2f2;
border-radius: 20px;
padding: 0px 0px 0px 10px;
resize: none;
user-select: none;
}
input:focus {
outline: none;
}
textarea:focus {
outline: none;
}
form {
text-align: center;
}
#logo {
position: relative;
top: -5px;
padding: 0px 0px 0px 390px;
zoom: 50%;
}
#menu {
padding:12px 0px 0px 370px;
}
#colsdiv {
text-align:center;
}
a {
color: black;
}
a:after {
color: black;
}
#portf-img {
zoom:150%;
border-radius:10px;
border-style: none outset outset none;
border-color: #f2f2f2;
}
#portf-img:hover {
border-style: none;
}
Also see: Tab Triggers