Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource

Packages

Add Packages

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.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Add Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">

<!-- Start Writing Code -->
<div class="body">
  <div class="box">
    <h1 class="title"> Zaragoza </h1>
    <h2 class="subtitle"> - Interesting facts about the city - </h2>
    <figure class="image-container"><img src=https://drscdn.500px.org/photo/121136211/q%3D80_m%3D1500/c543c44804ff9d2f157a30821c516c03 alt= "Zaragoza">
    <h2> Image 1: Ebro river meets  the Basilica of Nuestra Señora del Pilar </h2>
      <h3> Did you know? </h3>
      <p> Zaragoza or Saragossa is the capital of Zaragoza province and the leading city of Aragón, a Northeast region of Spain, on the Ebro River. It is an important commercial and Communications center, situated in a fertile, irrigated agricultural region. Among its manufactures are vehicles, wood products, machinery, foodstuffs and paper.
      </p>
      <ul>
        <li>  Its <strong>University</strong> (Universidad de Zaragoza) was <strong>founded in 1474</strong>.</li>
        <li>  Of ancient origin, it was name <strong>Caesar Augusta</strong>, by Emperor Augustus, being one of the most important city of the East Roman Empire.</li>
        <li> It fell to the <strong>Goth</strong> (5th century) and to the <strong>Moors</strong> (8th century), under whom it became the <strong>capital on an independent emirate in 1017</strong>.</li>
        <li> <strong>Charlemagne</strong> tried to take it, but was <strong>defeated by the Moors</strong> in 778.</li>
        <li> <strong>The Cid</strong> fought for a time in the service of the Moorish ruler of Zaragoza.</li>
        <li> The city was <strong>conquered in 1118</strong> by <strong>Alfonso I of Aragón</strong>, who made it the capital of his kingdom.</li>
        <li> The most notable event in the later history of Zaragoza was its <strong>heroic resistance</strong>, under the leadership of Palafox, against the French <strong>in the Peninsular War</strong>. The city resisted the <strong>first siege in 1808</strong>, surrendering only after some 50,000 defenders had died in the <strong>second siege in 1809</strong>.</li>
        
        <li> Zaragoza is a <strong>cultural center</strong> and is rich in works of art, many of which show Moorish influence. There are two cathedrals: <strong>La Seo</strong> (12th–16th century), formerly a mosque, and <strong>El Pilar</strong> (17th century), named after the sacred pillar near which the Virgin is said to have appeared in the vision of St. James the Greater (see picture above this lines).</li>
       
        <li> El Pilar contains frescoes by <strong>Velázquez</strong> and <strong>Goya</strong>.</li>
        <li> Also noteworthy are the <strong>Church of San Pablo</strong>, the Moorish castle of <strong>la Aljafería</strong> (residence of the emirs and later the kings of Aragón), <strong>the Lonja</strong> (exchange building), and a 15th-century <strong>Stone Bridge</strong> across the Ebro.</li>
        
        <li> The modern church of <strong>San Antonio de Padua</strong> contains the remains of Italian soldiers killed in the civil war (1936–39).</li>
        
        <li> The <strong>2008 World Exposition</strong> was held at Zaragoza with the theme "Water and Sustainable Development", which counted with the participation of 106 countries.</li>
      </ul>
      <h4>"¿Zaragoza se rendirá? La muerte al que esto diga.
Zaragoza no se rinde. La reducirán a polvo: de sus históricas casas no quedará ladrillo sobre ladrillo; caerán sus cien templos; su suelo abriráse vomitando llamas; y lanzados al aire los cimientos, caerán las tejas al fondo de los pozos; pero entre los escombros y entre los muertos habrá siempre una lengua viva para decir que Zaragoza no se rinde.” 
      </h4>
      <footer>- Benito Pérez Galdós</footer>
      <p> If you have time, you should read more about this incredible city on its <a href="https://en.wikipedia.org/wiki/Zaragoza">Wikipedia entry</a>.</p>
      <h5> Written and coded by <a href="https://www.freecodecamp.com/jimiedes">Jimiedes</a></h5>
  </div>
</div>
  
              
            
!

CSS

              
                <link href="/normalize.css" rel="stylesheet">

.wysiwyg-ce p { word-wrap: normal; }

.body{
  text-align:center;
}

.title{
  text-align:center;
  padding: 48px 0px 0px 0px;
  line-height: 0.6;
}

.subtitle{
  text-align: center;
}

.box{
    background:lightgrey;
    border-radius:10px;
    margin: 40px 50px 0px 50px; 
    padding: 0px 0px 20px 0px;

}

.image-container {
  background-color: #ffffff;
  display: inline-block;
  padding: 10px;
  border-radius:5px;
}

img {
    width: 100%;
    height: auto;
    margin-bottom: 13px;
}

h1{
  font-family: Open Sans;
  color: #222;
  font-size: 500%;
  margin-bottom: 60px;
}

h2{
  font-family: "Open Sans";
  text-align: center;
  color: #999;
  font-size: 90%;
  font-style: italic;
  margin-bottom: 25px;
}

h3{
  text-align: center;
  font-family: Open Sans;
  color: #555;
  font-size: 250%;
  margin-bottom: 25px;
}

p{
  margin-left: 10%;
  margin-right: 10%;
  margin-bottom: 30px;
  text-align: justify;
  font-family: Open Sans;
  font-size: 130%;
}

li{
  margin-left: 16%;
  margin-right: 16%;
  margin-bottom: 25px;
  text-align: justify;
  font-family: Open Sans;
  font-size: 120%;
  color: 555;
  list-style-type: square;
}

h4{
  margin-left: 40%;
  margin-right: 16%;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: justify;
  font-family: Open Sans;
  font-size: 110%;
  color: #666;
}

footer{
  margin-left: 40%;
  margin-right: 16%;
  font-family: Open Sans;
  color: #999;
  font-size: 90%;
  text-align: right;
  margin-bottom: 40px;
}

h5{

  margin-top: 60px;
  margin-bottom: 20px;
  text-align: center;
  font-family: Open Sans;
  font-size: 70%;
  color: #999;
}
              
            
!

JS

              
                
              
            
!
999px

Console