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.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image\ico" href="img\favicon.ico">
<link rel="stylesheet" href="css/style1.css">
<title>Mad's Social Media</title>
</head>
<body id="sm">
<div class="banner">
<h1 class="logo">Mad Designs</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a class="active" href="social.html">Social Media</a></li>
</ul>
</nav>
</div>
<div class="firstSec">
<h1 class="page">Social Media</h1>
<ul>
<li><a href="https://www.facebook.com/YenersWay/"><img src="img\logo\fb.png" height="80" alt="Facebook"></a></li>
<li><a href="https://www.instagram.com/ed.techsource/"><img src="img\logo\insta.png" height="80" alt="Instagram"></a></li>
<li><a href="https://twitter.com/elonmusk?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor"><img src="img\logo\twit.png" height="80" alt="Twitter"></a></li>
<li><a href="https://www.youtube.com/channel/UCpprBWvibvmOlI8yJOEAAjA"><img src="img\logo\yt.png" height="80" alt="Youtube"></a></li>
</ul>
</div>
<div class="secondSec">
<p id="bio">Kathryn Janeway was born on May 20, in Bloomington, Indiana on Earth. She was the daughter of Vice Admiral Janeway and had at least one sister, who she described as the artist in the family. Janeway was very close to her father, who taught her to look at the universe with a scientist's eye and she was devastated at his death. Her first mission after graduating the academy was as a science officer on the USS Al-Batani, where she served as Chief Science Officer during the Arias mission.
Captain Janeway takes command of the Intrepid-class USS Voyager in 2371. Their first mission is to locate and capture a Maquis vessel last seen in the area of space known as the Badlands. While there, the Maquis ship and Voyager are transported against their will into the Delta Quadrant, 70,000 light-years away, by a massive displacement wave. The Maquis ship is destroyed while fighting the Kazon-Ogla, and although Voyager survives, there are numerous casualties. In order to protect the Ocampa, who live on a planet Voyager visits, Janeway destroys the Caretaker Array, the space station that transported the two ships to the Delta Quadrant, which provides energy to the Ocampa's planet, despite the fact that the Array may be the two ships' only chance to return home. In doing this, Janeway strands her ship and crew seven decades' travel from home.
Her first major task is integrating the surviving Maquis and Voyager crews. Chakotay, captain of the Maquis ship, succeeds the deceased Lieutenant Commander Cavit as her first officer. Janeway also grants convicted criminal, former Starfleet officer, and accomplished pilot Tom Paris a field commission, and makes him Voyager's helmsman.
Janeway's other interactions with her crew include helping the de-assimilated Borg Seven of Nine reclaim her individuality and humanity and advocating for the Doctor's status as a sentient being</p>
<button><a href="form.html">Contact Me</a></button>
<img class="heize" src="img\heize.png" alt="Heize">
</div>
</body>
</html>
*{
margin:0;
padding:0;
}
html{
height: 100vh;
width:100%;
margin:0;
padding:0;
}
body{
height: 100vh;
width:100%;
margin:0;
background-color:#EFA3A0; /*pink*/
overflow-wrap:hidden;
font-color:white;
}
h1, h2, h3, h4, h5, h6, p{
font-family:Arial, Helvetica, sans-serif;
}
/*menu defaults*/
address a {
font-weight: bold;
text-decoration: none;
color:#6BDBA5; /*med green*/
}
a:hover {
color:#40B496; /*darker green*/
}
.banner{
width:100%;
max-height:200px;
padding-top-bottom:50px;
display:inline-block;
background-color:#EFA3A0; /*pink*/
text-align: center;
vertical-align:top;
position:sticky;
}
.logo {
float:left;
margin-left:50px;
text-transform:uppercase;
font-size:35px;
font-weight:lighter;
display:inline-block;
color:white;
}
nav {
float: right;
margin-right:50px;
}
nav ul {
margin: 25px;
padding: 0;
list-style: none;
}
nav li {
display: inline-block;
margin-left: 25px;
}
nav a {
color: white;
text-decoration: none;
text-transform: uppercase;
font-size: 30px;
}
nav a:hover {
color: #B7043C; /*maroon*/
}
.active{
color:#B7043C; /*maroon*/
}
.firstSec{
margin:50px;
}
.page{
color:white;
text-align:left;
padding-top:25px;
padding-right:15px;
text-transform:uppercase;
font-size:80px;
}
/*SOCIAL MEDIA*/
#sm{
display:flex;
flex-direction: column;
}
#sm .firstSec{
margin:0;
max-height:320px;
background-color:#6F9D94; /*green*/
}
#sm .page{
text-align:center;
margin-top:0;
}
#sm .firstSec ul{
float:center;
list-style:none;
text-align:center;
padding:0;
margin-top:0;
margin-left:25px;
}
#sm .firstSec ul li{
display:inline;
margin-right:25px;
}
#sm .secondSec{
justify-content:center;
margin:0 50px;
display:grid;
grid-template-columns: 50% 50%;
margin-top:0;
}
#bio{
grid-column:1;
color:white;
float:left;
text-indent:35px;
font-size:22px;
flex-wrap:wrap;
position: relative;
animation-name:slide;
animation-duration: 1.5s;
animation-iteration-count: 1;
padding-bottom:50px;
}
@-webkit-keyframes slide {
from{ transform: translateX(-1500px)}
to{ transform: translateX(0px)}
}
@-moz-keyframes slide {
from{ transform: translateX(-1500px)}
to{ transform: translateX(0px)}
}
@-o-keyframes slide {
from{ transform: translateX(-1500px)}
to{ transform: translateX(0px)}
}
@keyframes slide {
from{ transform: translateX(-1500px)}
to{ transform: translateX(0px)}
}
#sm button{/*contact me*/
background-color:#6F9D94; /*green*/
color:white;
border-radius:5px;
border:none;
padding: 15px;
text-align: center;
text-decoration-style: none;
font-size: 30px;
margin: 5px;
width:200px;
height:80px;
grid-column:1;
}
.heize{
grid-column:2;
height:auto;
width:auto;
bottom:0;
right:0;
height:70%;
filter:drop-shadow(10px -25px 50px white);
background-color:blue;
}
Also see: Tab Triggers