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.
<head>
<link href="https://fonts.googleapis.com/css?family=Amatic+SC" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Hind" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Permanent+Marker" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<!--Navbar
-->
<ul id="ulnav" style="z-index:9;">
<li>
<a class="active" style="text-decoration:none;" href="#"><img class="img-fluid" src="https://image.ibb.co/mg1s3a/lyreimage27.png" alt="website icon"></img> //salvete</a>
</li>
<li><a href="#about">About
</a>
</li>
<li><a style="text-decoration:none" href="#portlink">Portfolio</a>
</li>
<li><a style="text-decoration:none;" href="#contact">Contact</a>
</li>
</ul>
<!--End Navbar-->
<!--page 1-->
<header>
<div id="front">
<div class="container-fluid">
<h1 id="h1" class="text-center">RASSEDA'S LIL THANG</h1>
<h2 id="pt" class="text-center">JUST A LIL DUDE OF A WEBPAGE, KICKIN' AROUND THE INTERNET</h2>
</header>
<!--end page1-->
<!--start page2-->
<body>
<div id="container-fluid">
<div id="page2">
<div class="row">
<div class="col-sm-4">
<a id="about">
<p id="p2link">x</p>
</a>
<img class="img-fluid img-responsive" id="picofme" alt="an artist's rendering of Rasseda" src="https://image.ibb.co/hi77KF/32b8b218548f0ab6f00c00e58c4172a8.png">
</div>
<div class="col-sm-8">
<h3 id="aboutme">ABOUT ME</h3>
<p id="abouttext">Hi. I'm Hayley. You can see an accurate artist's rendering of me to the left. I put that there because I thought it was pretty cool. In fact, I put all of this here. If you hover over the navigation buttons to the top left, you'll see that they light up. That took a while. The social media icons down bottom will drop pop n' lock it and reverse flip it all over the damn place if your mouse gets anywhere near them. That's a pretty cool feature. I did that myself. My favorite feature though is probably the one where Siri will fax pre-laminated copies of your Google search history to your local police department with a triangulated record of your GPS coordinates just seconds after you access this page. You're really fucked now, huh? Here's some placeholder text:</p>
<ul id="abouttext">
<li>Donec tincidunt sed eros ut interdum. Pellentesque ac pulvinar tellus.</li>
<li>Mauris faucibus nisi et mi eleifend aliquet. Etiam gravida urna nec lobortis euismod.</li>
<li>Nunc faucibus tempor venenatis. Integer quis risus at elit egestas vehicula.</li>
<li>Vestibulum libero eros, porta nec orci eu, tincidunt eleifend odio. Curabitur aliquet elementum ante.</li>
<li>Nulla pharetra erat in quam sagittis placerat. In mollis pharetra aliquet.</li>
<li>Sed tempor in quam vitae vehicula.</li>
</ul>
</div>
</div>
<!--endp2id-->
</div>
<!--endp2container-->
<!--end page2-->
<img id="wedged" class="img-fluid" src="https://image.ibb.co/n9TdTa/bg4.png">
<!--start page3-->
<body>
<div id="container-fluid">
<div id="page3">
<div class="col-sm-4">
<a id="portlink">
<p id="portlink">x</p>
</a>
<h3 id="portfolioheading">SOME OTHER LIL THANGS</h3>
<p id="abouttext">The "lorem ipsum" is a filler text that's been all fucked up since the sixteenth century. If you translated it you'd just get a lot of nonsense, but it's actually a scrambled piece of Cicero that somebody ruined specifically so that it could be used as placeholder text without being legible and distracting. Pretty cool, right? Cicero would really hate that. He was an old douche. Here's some stuff I did.</p>
</div>
<div class="col-sm-8">
<div class="col-sm-4">
<a href="https://codepen.io/rasseda/" target=_blank><img alt="A simple HTML/CSS webpage depicting several photographs of York Minster" id="project1" class="img-rounded img-fluid img-responsive" src="https://image.ibb.co/doZPjF/p1.png"></a>
</div>
<div class="col-sm-4">
<a href="http://rasseda.tumblr.com/post/164353774005/character-concept-seneca" target=_blank><img id="project1" class="img-rounded img-fluid img-responsive" src="https://image.ibb.co/n5u1Wv/p3.png" alt="Character artwork"></a>
</div>
<div class="col-sm-4">
<a href="http://rasseda.tumblr.com/post/115040712460/domestic-maxvic-fluff-imgur" target=_blank><img id="project1" class="img-fluid img-rounded img-responsive" src="https://image.ibb.co/ggdTBv/p4.png" alt="Artwork"></a>
</div>
</div>
<div class="col-sm-4">
</div>
<div class="col-sm-8">
<div class="col-sm-4">
<a href="http://rasseda.tumblr.com/" target=_blank><img id="project2" class="img-fluid img-rounded img-responsive" src="https://image.ibb.co/nkqKJa/p5.png" alt="Character artwork"></a>
</div>
<div class="col-sm-4">
<a href="http://rasseda.tumblr.com/" target=_blank><img id="project2" class="img-fluid img-rounded img-responsive" src="https://image.ibb.co/mkxrya/p6.png" alt="Artwork">
<a></div>
<div class="col-sm-4">
<a href="http://rasseda.tumblr.com/post/150414962935/a-belated-wip-for-this-precious-fictional" target=_blank><img alt="Artwork" id="project2" class="img-rounded img-fluid img-responsive" src="https://image.ibb.co/gkoaPF/p7.png"></a>
</div>
</div>
<div class="col-sm-4"></div>
<div class="col-sm-4"></div>
<div class="col-sm-4"></div>
<div class="col-sm-4"></div>
<div class="col-sm-4" id="icons">
<a href="https://www.youtube.com/channel/UCeRXgaocM5QG7weLNg0kMLg/" target=_blank class="fa fa-youtube" style="text-decoration:none;"></a>
<a href="http://rasseda.tumblr.com" target=_blank class="fa fa-tumblr" style="text-decoration:none;"></a>
<a href="https://twitter.com/loiteringbaby" target=_blank style="text-decoration:none;" class="fa fa-twitter"></a>
</div>
<div class="col-sm-4"></div>
</div>
</div>
<!--end bodies>
-->
</body>
<!--start footer
-->
<footer class="text-center">
<a href id="contact">
<p style="font-size:15px;background-color:rgb(230,230,230);">All images © 2017</a> <a href="https://www.freecodecamp.org/rasseda" target="_blank">Hayley Y.</a></p>
</footer>
<img id="wedged" class="img-fluid" src="https://image.ibb.co/eXKz1v/image.png">
body
{
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow-x:
hidden; /*somehow solved extra space to right issue?????*/
}
#wedged {
height:100%;
width:100%;
}
#front {
background: url("https://image.ibb.co/mjTmwv/port34.png") no-repeat;
overflow: hidden;
background-size: cover;
width: 100%;
min-height: 93vh;
font-family:'Amatic SC';
}
.text-center {
text-align: center;
}
h1 {
color: white;
font-size: 90px;
margin-top: 40vh;
padding: 10px;
background: rgba(43, 142, 255, 0.4);
}
h2 {
color: white;
font-size: 38px;
background: rgba(39, 220, 130, 0.4);
}
#ulnav {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: rgba(0, 0, 0, 0.7);
position: fixed;
top: 0;
width: 100%;
font-size: 16px;
z-index: 9;
font-family:'Lato';
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
color: white;
background-color: rgba(39, 220, 130, 0.4);
transition: 0.5s;
text-decoration: none;
}
.active {
color: white;
background-color: rgba(43, 142, 255, 0.4);
}
.active:hover {
color: white;
text-decoration: none;
}
.active img {
width:auto;
height:auto;
max-height:26px;
max-width:20px;
}
#page2 {
background:url("https://image.ibb.co/jVGgWv/bgpage2.png"),rgba(39, 220, 130,0);
background-size: cover;
width: 100%;
min-height: 93vh;
}
#page3 {
background:url("https://image.ibb.co/kn1n4F/bgpage34.png");
background-size: cover;
width: 100%;
min-height: 91vh;
}
#picofme {
border-radius:50%;
border:solid white 6px;
margin-top:12%;
margin-left:1vh;
height:auto;
width:auto;
max-height:60vh;
max-width:60vh;
}
}
#p2link {
color:rgb(39, 220, 130);
}
#aboutme {
margin-top:3vh;
padding:5vh;
font-size:40px;
border-bottom:solid white 3px;
border-radius:5px;
font-size:70px;
font-family:'Amatic SC';
color:white;
}
#abouttext {
font-size:18px;
margin-left:60px;
font-family:'Lato';
color:rgba(0,0,0,0.8);
}
#portlink {
color:rgb(43, 142, 255);
}
#portfolioheading {
margin-top:3vh;
padding:5vh;
font-size:70px;
border-bottom:solid white 3px;
font-family:'Amatic SC';
color:white;
}
#project1 {
margin-top:26%;
height:auto;
width:auto;
max-height:33vh;
max-width:33vh;
border:solid 3px rgba(255,255,255,.7);
}
#project2 {
margin-top:10%;
height:auto;
width:auto;
max-height:33vh;
max-width:33vh;
border:solid 3px rgba(255,255,255,.7)
}
#project1:hover {
transform: scale(1.2);
transition: all .5s;
}
#project2:hover {
transform:scale(1.2);
transition:0.5s;
}
body {
background-color:rgb(230, 230, 230);
}
#foot {
background-color:rgb(230,230,230);
}
.fa {
padding: 10px;
font-size: 30px;
width: 50px;
height:50px;
text-align: center;
text-decoration: none;
border-radius: 50%;
}
.fa:hover {
transform:scale(1.5)rotate(360deg);
transition:0.5s;
}
.fa-tumblr {
background: #2c4762;
color: white;
text-decoration:none;
}
.fa-youtube {
background: #bb0000;
color: white;
text-decoration:none;
}
.fa-twitter {
background: #55ACEE;
color: white;
text-decoration:none;
}
#icons {
font-size:30px;
text-align:center;
margin-top:11vh;
background-color:rgba(43, 142, 255,0);
border-radius:80%;
Also see: Tab Triggers