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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
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.
If the stylesheet 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 CSS 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.
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.
<body style="background: url(https://vignette.wikia.nocookie.net/disney/images/8/80/Black_Panther_%28film%29_66.jpg/revision/latest?cb=20171016150434); background-size: 100% 100%">
<link href="https://fonts.googleapis.com/css?family=Aclonica" rel="stylesheet" type="text/css">
<!--Fonts Links are Above This Line-->
<!--HTML Code below the line-->
<div class="container-fluid">
<h1 class="text-center gold-text">Wakanda Forever
</h1>
<!--<div class="row"></div>-->
<div id="inner-frame">
<h2 class="text-center" style="color: white">What is Wakanda?</h2>
<p style="color: white" class="text-center">Wakanda, officially known as the Kingdom of Wakanda, is a small isolationist landlocked country located in Africa, surrounded by mountain ranges and a thick forest. It is ruled by King T'Challa, the heir of the mantle of Black Panther, and is the only known source of the metal vibranium. Despite appearing to be little more than an obscure, poor third world country with little to offer to the rest of the world, it is in fact the most advanced country in the world, whose level of technology is at least several decades ahead of anywhere else on Earth.</p>
</div>
</div>
<!--3 IMAGE COLUMN-->
<div id="Image-column-row" class="row">
<a href="http://marvelcinematicuniverse.wikia.com/wiki/Black_Panther" class="column text-primary text-center" target="_blank"><img id="tchalla" src="http://www.joblo.com/posters/images/full/pantherposterhandsmain.jpg"></a>
<a href="http://marvelcinematicuniverse.wikia.com/wiki/Shuri" class="column text-primary text-center" target="_blank"><img id="shuri" src="http://www.joblo.com/posters/images/full/ladyclawpanther.jpg"></a>
<a href="http://marvelcinematicuniverse.wikia.com/wiki/Okoye" class="column text-primary text-center" target="_blank"><img id="okoye" src="http://www.joblo.com/timthumb.php?src=/posters/images/full/DONEZUpVAAAZFO7.jpg&h=600&q=100"></a>
</div>
<div id="article">
<div id="inner-frame2">
<h3>Location</h3>
<font size="4"><p style="color: silver">The exact location of Wakanda has varied throughout its comics history, but the movie features a zoom in from space that places it somewhere around Rwanda. Aiding its isolation from the rest of the world, new comics explain the country is bordered by “hills, mountains, and the sprawling Lake Nyanza.” (In the movie, it’s also protected by a hologram that hides its capital city from outside eyes.) Wakandans have their own language, which is “played” in the movies by Xhosa, a Bantu language spoken in South Africa. (South African actor John Kani, who plays T’Challa’s father, T’Chaka, came up with the idea while filming Captain America: Civil War.) To make things easier for subtitle-averse viewers, pretty much everybody in the movie also speaks English.</p></font>
</div>
<!--INNER FRAME #3-->
<div id="inner-frame3">
<h3>Isolation</h3>
<font size="4"><p style="color: silver">As Carvell Wallace wrote in the New York Times, what makes Wakanda so attractive is the fantasy of an African nation untouched by colonial influence. (Director Ryan Coogler say he based aspects of his version of Wakanda on Lesotho, which was able to resist both the Zulus and the Boers, and was only lightly colonized by the British.) Wakanda zealously guards its borders, and its comics history is filled with failed invasions from neighboring tribes, 19th-century European mercenaries, and Nazis. It refuses to trade with other nations, though as one line in the movie makes clear, Wakandans are still able to consume American memes. As we see in a Western television broadcast in the movie, Wakanda is able to get away with this by masquerading as an impoverished third-world country, and since the country’s leadership refuses to take international aid, the rest of the world doesn’t ask too many questions.</p></font>
</div>
<!--INNER FRAME #4-->
<div id="inner-frame4">
<h3>Vibraniumn</h3>
<font size="4"><p style="color: silver">Fundamental to Wakanda’s self-sufficiency is its supply of vibranium, which nearly every character in Black Panther helpfully explains is “the strongest metal in the world.” Wakanda is the only country on Earth that has it, thanks to a vibranium-filled meteor that crashed into its lands thousands of years ago. You don’t need to know too much about the science of it except that vibranium is able to absorb kinetic energy and release it later, and the near-inexhaustible supply of it has made Wakanda the most technologically advanced nation on Earth. (In the comics, Wakanda split the atom decades before the U.S. did, and it’s got a cure for cancer that it’s not sharing with anyone else.) Thanks in part to its decision to only export scant amounts of the metal — which is how Captain America got his vibranium shield — Wakanda has been able to avoid the resource curse, and the kingdom seems to have put a portion of its riches aside to fund a comfortable social safety net. And though Wakanda’s mostly painted as a techno-utopia, both the movie and the comics are very interested in the question of whether its tradition of self-preservation through isolation is morally right.</p></font>
</div>
<!--INNER FRAME #5-->
<div id="inner-frame5">
<h3>History and Politics</h3>
<font size="4"><p style="color: silver">You want a foundation myth? You want a legendary hero? Wakanda’s got both. According to a legend outlined near the start of the movie, the land that would become Wakanda was originally inhabited by five different tribes (pared down from 18 in the comics). After the meteor hit, the leader of the Panther Tribe was visited by the panther god Bast, who instructed him to drink from the Heart-Shaped Herb, a flower that was affected by the impact. The flower gave him superpowers, which he used to unite most of the tribes under his rule. (In both the comics and the movie one of the tribes, the White Gorilla Cult, lives separately from the rest of them, though the reason why differs.) This leader’s line continues today in T’Challa, who is both the superhero Black Panther and king of Wakanda.</p></font>
<font size="4"><p style="color: silver">You might think that strange cats distributing drugs is no basis for a system of government, but the Wakandan people do have a sort of veto power — any citizen can challenge the king to a duel, and if they win they get to be the king. It’s a good gig: Besides the whole superpower thing, the king also has a squad of all-female bodyguards, the Dora Milaje, as well as a shadowy secret police, the Hatut Zeraze, also called the “Dogs of War.” (In the comics, the Hatut Zeraze dress in all white, but the movie gives them more traditional spy gear.)</p></font>
<font size="4"><p style="color: silver">The king of Wakanda seems to be something like an absolute monarch, though he does have a council, the Taifa Ngao, made up of representatives of the various tribes. Wakanda’s comics history has been full of threats to T’Challa’s rule, and Ta-Nehisi Coates’s recent run introduced a popular revolt against the monarchy.</p></font>
</div>
</div>
</body>
body{
padding: 50px 10px 20px 30px;
}
.gold-text {
color: gold;
}
h1 {
font-family: Aclonica;
font-size: 80px;
}
h3 {
font-family: Georgia, serif;
color: grey;
font-size: 35px;
}
#article {
border-color: midnightblue;
border-width: 5px;
border-style: solid;
margin: 75px 200px 20px 200px;
}
/*column images*/
.column {
float: left;
width: 33.33%;
}
#tchalla {
width: 70%;
}
#shuri {
width: 70%;
}
#okoye {
width: 70%;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
img {
opacity: 00.45;
filter: alpha(opacity=50);
}
img:hover {
opacity: 1.0;
filter: alpha(opacity=100);
}
$("#inner-frame").css("background-color", "black")
Also see: Tab Triggers