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 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.
<link href="https://fonts.googleapis.com/css?family=Cinzel|Economica|Poppins|Vesper+Libre" rel="stylesheet"> <!--font choice to similer-->
<article>
<div id="1st-row">
<div class="col-xs-4" id="image-container"><img id="main-image" src=http://thumbs.media.smithsonianmag.com/filer/16/42/16423bfb-0569-4927-8fc6-8e8a4958a013/lawrence_camel.jpg__800x600_q85_crop_subject_location-1453,602.jpg alt=" T. E Lawrance arabia" ></div>
<div class="col-xs-4" id="main-text"><h1>T.E Lawrance<h1><h2>Leveraging Britan to unite a people</h2>
<p>Lawrance arrived in Cairo to take up service in the Arab Bureau on 15 December 1914. The situation during 1915 was complex. Within the Arabic-speaking Ottoman territories, there was a growing Arab-nationalist movement, including many Arabs serving in the Ottoman armed forces. They were in contact with Sharif Hussein, Emir of Mecca, who was negotiating with the British, offering to lead an Arab uprising against the Ottomans. In exchange, he wanted a British guarantee of an independent Arab state there was resistance from French diplomats, who insisted that Syria's future was as a French colony not an independent Arab state. Lawrence was involved in the build-up to the capture of Damascus in the final weeks of the war. He was not present at the city's formal surrender, much to his disappointment and contrary to instructions which he had issued, having arrived several hours after the city had fallen. Lawrence entered Damascus around 9am on 1 October 1918 but was the third arrival of the day. Lawrence was instrumental in establishing a provisional Arab government under Faisal in newly liberated Damascus—which he had envisioned as the capital of an Arab state. Faisal's rule as king, however, came to an abrupt end in 1920, after the battle of Maysaloun, when the French Forces of General Gouraud entered Damascus under the command of General Mariano Goybet, destroying Lawrence's dream of an independent Arabia. During the closing years of the war, Lawrence sought to convince his superiors in the British government that Arab independence was in their interests—with mixed success. The secret Sykes-Picot Agreement between France and Britain contradicted the promises of independence that he had made to the Arabs and frustrated his work.
</p></div>
<aside id="positoning"><div class="col-xs-3"id="time-line-main"><h2>Time line</h2>
<div class="time-line"><ul>
<li><b>1888</b> august Lawrence was born out of wedlockin wales</li>
<li><b>1906</b>, Lawrence and Beeson toured France by bicycle</li>
<li><b>1909</b>, he set out alone on a three-month walking tour of crusader castles in Ottoman Syria, during which he travelled 1,000 mi on foot. </li>
<li><b>1910</b> he sailed for Beirut and on his arrival went to Jbail (Byblos), where he studied Arabic
<li><b>1914</b> he befan working as an archaeologist</li>
<li><b>1914</b>, Woolley and Lawrence were co-opted by the British military to survey the negev desert</li>
<li><b> 1916,</b> he was sent to Arabia on an intelligence mission and quickly became involved with the Arab Revolt</li>
<li><b>1918</b> capture of Damascus in October.</li>
<li><b>1922</b>, he retreated from public life </li>
<li><b>1922</b> the Seven Pillars of Wisdom was written and published upon his retirment one of the first books to feacher the twin scimitars</li>
<li><b>1935</b> serving as an enlisted man, mostly in the Royal Air Force,</li>
<li><b>1935</b>, Lawrence was fatally injured in a motorcycle accident in Dorset.</li>
</ul></div>
</div>
</aside>
</div>
</div>
<div>
<div class="col-xs-4"id="quote" >
<h3><b>    "I loved you, so I drew these tides of men into my hands<br>
               and wrote my will across the sky in star<br>
    To earn you Freedom, the seven-pillared worthy house,<br>
                  that your eyes might be shining for me<br>
                                            When we came."</h3>
</div><!-- To much nsp& find work around-->
<div class="col-xs-5">
<a href="https://en.wikipedia.org/wiki/T._E._Lawrence"> <img id="Wikipedia" src=http://icons.iconarchive.com/icons/sykonist/popular-sites/256/Wikipedia-icon.png alt=" T. E Lawrance arabia"></a></div>
</div>
html{margin:50px;
}
body{background-color= #eaeabe}
h1{
margin:50px;
height:100%;
font-size:50px;
text-align:center;
font-family: 'Poppins', sans-serif;
font-size:50px;}
h2{font-family: 'Poppins', sans-serif;}}
li{margin-top: 5px;font-family: 'Poppins', sans-serif;}
p{font-size:19px;
font-family: 'Economica', sans-serif;}
h3{font-size:19px;
font-family: 'Cinzel', serif;
margin:10px;}
#1st-row{}
#main-image{
margin:5px;
padding:2px;
height:700px;
width:550px;
border:2px solid #d8d8d8; }
#image-container{
margin:10px;
}
#main-text{margin:20px;}
#time-line-main{
position:relative;
margin-left:30px;
}
#positioning{
display:flex;
align-items:center;}
#Wikipedia{ border:5px solid #000000;
border-radius: 80%;
padding:2px;
margin:15px;
height:150px;
width:150px;}
/*Figure out better way to format in line with h2 element*/
#quote{padding:10px;
margin:5px;}
Also see: Tab Triggers