Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

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


Auto Save

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.



  <header id="header">
    <h1 id="titel"> Visting Munich </h1>
    <img src="" width="150" height="30" border="0" alt="Munich City Portal"><br>
    <nav id="nav-bar">
        <li><a class="nav-link" href="#hotels">Hotels</a></li>
        <li><a class="nav-link" href="#museums">Museums</a></li>
        <li><a class="nav-link" href="#restaraunts">Restaraunts</a></li>
        <li><a class="nav-link" href="#email">Receive our Newsletter</a></li>
        <li><a class="nav-link" href="#video">Watch a video</a></li>

  <form id="form" action="">
    <label id="mail" for="mail">Newsletter:</label><br>
    <input type="email" name="email" size="50" placeholder="Please enter your eMail address">

    <button id="submit" type="submit">Submit to subscribe </button>

  <p>Watch a video of Munich by sunset</p>
  <video id="video" width="320" height="240" controls>
    <source src="" type="video/mp4">Your browser does not support the video format.

  <div id="box-container">
    <div id="hotels">
    <div id="museums">
    <div id="restaraunts">
    <div>About us</div>


                           body {
            background: url(;
            padding: 60px;
          header {            
            font-size: 20px;
            font-family: sans-serif, monospace;
            padding:80px 0px 80px 0px;              

          footer {
            background-color: #48D1CC;
            font-size: 18px;
            font-family: sans-serif, monospace;
            padding: 20px 0px 20px 10px;              

          #box-container {
            background: #DCDCDC;
            display: flex;
            height: 100px;
            align-items: center;
            justify-content: space-around;       
            padding: 50px 0px 50px 0px
          #hotels {
            background-color: #1E90FF;
            width: 300px;
            font-size: 26px;

         #museums {
            background-color: #FF4500;
            width: 300px;
            font-size: 26px;

         #restaraunts {
           background-color: #F4A460;
           width: 300px;
           font-size: 26px;
         #nav-bar {
           position: fixed; 
           top: 0;
           left: 0;
           z-index: 9999;
           width: 100%;
           height: 50px;
           background-color: #48D1CC;
           padding: 40px 0px 30px 20px

           .nav-link {
             font-size: 22px;
             font-family: sans-serif, monospace;
             padding: 40px 0px 250px 0px;
          form {
             font-size: 26px;
             font-family: sans-serif, monospace;
             padding: 40px 0px 250px 0px; 

          p  {
             font-size: 24px;
             font-family: sans-serif, monospace;
             padding: 10px 0px 0px 10px; 
         @media (max-width: 480px){ 
            p {
               font-size: 18px;

         video { 
            object-position: 50% 50%;
            object-fit: contain;
            padding: 0px 0px 200px 0px;
          ul {
	         list-style-type: none;/* No bullets */
             margin: 0;
             padding: 0; 					

         li {
            display: inline;       
            margin-right: 22px;


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