Pen Settings



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. 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.

+ add another resource


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


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.


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.


                <nav id="navbar">
   <li> <a class="nav-link" href="#Nigeria">Nigeria</a></li>
   <li> <a class="nav-link" href="#South_Africa">South Africa</a></li>
   <li> <a class="nav-link" href="#Ghana">Ghana</a></li>
   <li> <a class="nav-link" href="#Togo">Togo</a></li>
   <li> <a class="nav-link"  href="#About_me">About me</a></li>
 <main id="main-doc">
<section id="Nigeria" class="main-section">        <header>Nigeria</header>
   <p><code>Lagos (Nigerian English: /ˈleɪɡɒs/;[9] Yoruba: Èkó) is the most populous city in Africa with a population of 14.8 million as of 2015 within the city proper. The Lagos metropolitan area has a total population of roughly 23.5 million as of 2018, making it the most populous conurbation in Africa.[
     </code> </p>
  <p><code>Lagos is a major African financial centre and is the economic hub of Lagos State and Nigeria at large. Lagos is also among the top ten of the worlds fastest growing cities and urban areas . The megacity has the fourth-highest GDP in Africa and houses one of the largest and busiest seaports on the continent.</code></p>
      <li>months that i would be visiting: feb-march</li>
      <li>Porpular cities</li>
<section id="South_Africa" class="main-section">        <header>South Africa</header>
   <p><code>The city of Cape Town had its origin in 1652, when the Dutch East India Company established a refreshment station for its ships on the shores of Table Bay. ... Cape Town was the gateway to Europe's penetration of the South African interior, and close ties with continental Europe were maintained.</p>
  <p>Cape Town was the gateway to Europe’s penetration of the South African interior, and close ties with continental Europe were maintained.</code></p>

      <li>months that i would be visiting: april-may</li>
      <li>Porpular cities</li>
  <li>Cape town</li>

 <p><code>Cairo is the capital of Egypt and its most important city, and with almost 20 million inhabitants, it's also one of the world's largest cities.
<section id="Ghana" class="main-section">        <header>Ghana</header>
   <p>Accra, capital and largest city of Ghana, on the Gulf of Guinea (an arm of the Atlantic Ocean). The city lies partly on a cliff, 25 to 40 feet (8 to 12 metres) high, and spreads northward over the undulating Accra plains. The area’s susceptibility to faulting is the cause of occasional earthquakes.</p>
  <p>When the Portuguese first settled on the coast of what is now Ghana in 1482, the present site of Accra was occupied by several villages of the Ga tribe, ruled from a parent settlement, Ayaso (Ayawaso), located about 15 miles (24 km) north. Between 1650 and 1680 the Europeans built three fortified trading posts—Fort James (English), Fort Crevecoeur (Dutch), and Christiansborg Castle (Danish)—along the coast in the locality. While these European posts were being constructed, Ayaso was destroyed in a tribal war, and its population, together with that of the other major Ga towns on the Accra plains, was drawn to the coast by the prospect of</p>
      <li>months that i would be visiting: Aug-sep </li>
      <li>Porpular cities</li>
 <section id="Togo" class="main-section">        <header>Togo</header> 
    <p>Lomé, city, capital of Togo. Lomé lies on the Gulf of Guinea (Atlantic coast) in the extreme southwestern corner of the country. Selected as the colonial capital of German Togoland in 1897, it became important as an administrative, commercial, and transport centre. A modern town was laid out, and a 1,380-foot (420-metre) jetty was built to facilitate the export of raw materials. Three railways fan out from Lomé to the hinterland: northwest to Palimé, north to Sokodé, and east along the coast to Aného. Modernization of the port was begun in the 1960s, and a deepwater harbour, completed in 1968, can handle some three million tons of goods annually. This has greatly facilitated the shipping of phosphates and other major exports, such as cocoa, coffee, copra, cotton, and palm products. Lomé is also home to an international airport, thermal power plant, and the Maison du Peuple, a conference hall. The Université du Bénin was founded in 1965 at Lomé.</p>
   <p>The Togolese capital was also the site of several important summits; the first Lomé Convention was signed there in 1975, establishing an aid and trade agreement between African, Caribbean, and Pacific (ACP) countries and the European Union. Pop. (2010 prelim.) 750,757; urban agglom., 1,348,619.</p>

      <li>months that i would be visiting: Oct-Nov</li>
      <li>Porpular cities</li>
<section id="About_me" class="main-section">        <header>About me</header>
  <p> i am just a young guy who does'nt know much About coding,but fell inlove with it.</p>
      <li>things i like about coding</li>
      <li>it makes me think critically</li>
  <li>good pay</li>


                body {
  min-width: 290px;
  color: #4d4e53;
  background-color: black;
  line-height: 1.5;

#navbar {
  position: fixed;
  height: 100%;
  min-width: 300px;
  width: 300px;
  top: 0px;
  left: 0px; 
  background-color: white;
  padding: 75px 0px;

header {
  color: white;
  margin: 10px;
  text-align: center;
  font-size: 1.8em;
  font-weight: normal;

#navbar ul {
  height: 88%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;

#navbar li {
  color:  #4d4e53;
  border-top: 1px solid;
  list-style: none;
  position: relative;
  width: 100%;

#main-doc {
  position: absolute;
  margin-left: 310px;
  padding: 20px;
  margin-bottom: 110px;

section {
  color: #4d4e53;
  margin: 15px;

p {
  color: white;
  font-family: courier;
  font-size: 150%;

section ul {
  color: white; 
  margin: 15px 0px 0px 20px;
  font-size: 150%;

@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;


                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.