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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">

</script>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <title>Bootstrap Documentation</title> 
</head>



<!-- This is where the page content begins -->


<body>
  <main id="main-doc">
    <nav id="navbar">
      <!--<img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg" alt="React Native logo" style="display: inline-block;" style="width:70px; height:70px;" align="left">-->
      <header id="header">Bootstrap Documentation</header>
      <a class="nav-link" href="#Introduction">Introduction</a>
      <a class="nav-link" href="#Download">Download</a>
      <a class="nav-link" href="#Contents">Contents</a>
      <a class="nav-link" href="#Browsers_&_Devices">Browsers & Devices</a>
      <a class="nav-link" href="#JavaScript">JavaScript</a>
      <a class="nav-link" href="#Theming">Theming</a>
      <a class="nav-link" href="#Build_Tools">Build Tools</a>
      <a class="nav-link" href="#Webpack">Webpack</a>
      <a class="nav-link" href="#Accessibility">Accessibility</a>
      <a class="nav-link" href="#Reference">Reference</a>
    </nav>

    <!-- This section is for the right main panel -->
    <section class="main-section" id="Introduction">
        <header>Introduction</header>
          <p>Get started with Bootstrap, the world’s most popular framework for building responsive, mobile-first sites, with BootstrapCDN and a template starter page.</p>
          <h3>CSS</h3>    
          <p>Copy-paste the stylesheet link into your head before all other stylesheets to load our CSS.</p>
      <figure>    
      <code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;</code>
      </figure>
      
          <h3>JS</h3>
          <p>Many of our components require the use of JavaScript to function. Specifically, they require jQuery, Popper.js, and our own JavaScript plugins. Place the following &lt;script&gt;s near the end of your pages, right before the closing &lt;/body&gt; tag, to enable them. jQuery must come first, then Popper.js, and then our JavaScript plugins.</p>
      <figure>
        <code>&lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"&gt;&lt;/script&gt;</code>
      </figure>
     </section>
      
        <section class="main-section" id="Download">
          <header>Download</header>
            <p>Download Bootstrap to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, RubyGems, and more.</p>
          <h3>BootstrapCDN</h3>
          <p>Skip the download with BootstrapCDN to deliver cached version of Bootstrap’s compiled CSS and JS to your project.</p>
          <figure>
            <code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"&gt;
&lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"&gt;&lt;/script&gt;</code>
          </figure>
          
          <p>If you’re using our compiled JavaScript, don’t forget to include CDN versions of jQuery and Popper.js before it.</p>
          <figure>
            <code>&lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">&lt;/script&gt;
lt src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"&gt;&lt;/lt&gt;</code>
            
          </figure>
          
        </section>
      
        <section class="main-section" id="Contents">
            <header>Contents</header> 
            <p>Discover what’s included in Bootstrap, including our precompiled and source code flavors. Remember, Bootstrap’s JavaScript plugins require jQuery.</p>
          <h3>Precompiled Bootstrap</h3>
          <p>Once downloaded, unzip the compressed folder and you’ll see something like this:</p>
          <pre>
            <code>
bootstrap/
├── css/
│   ├── bootstrap.css
│   ├── bootstrap.css.map
│   ├── bootstrap.min.css
│   ├── bootstrap.min.css.map
│   ├── bootstrap-grid.css
│   ├── bootstrap-grid.css.map
│   ├── bootstrap-grid.min.css
│   ├── bootstrap-grid.min.css.map
│   ├── bootstrap-reboot.css
│   ├── bootstrap-reboot.css.map
│   ├── bootstrap-reboot.min.css
│   └── bootstrap-reboot.min.css.map
└── js/
    ├── bootstrap.bundle.js
    ├── bootstrap.bundle.min.js
    ├── bootstrap.js
    └── bootstrap.min.js
            </code>
          </pre>
           
        </section>
      
        <section class="main-section" id="Browsers_&_Devices">
              <header>Browsers & Devices</header>
            <p>Learn about the browsers and devices, from modern to old, that are supported by Bootstrap, including known quirks and bugs for each.</p>
        </section>
      
        <section class="main-section" id="JavaScript">
            <header>JavaScript</header>
            <p>Bring Bootstrap to life with our optional JavaScript plugins built on jQuery. Learn about each plugin, our data and programmatic API options, and more.</p>
        </section>
        
        <section class="main-section" id="Theming">
            <header>Theming</header>
            <p>Customize Bootstrap 4 with our new built-in Sass variables for global style preferences for easy theming and component changes.</p>
         
        </section>
         
        <section class="main-section" id="Build_Tools">
            <header>Build Tools</header>
            <p>Learn how to use Bootstrap’s included npm scripts to build our documentation, compile source code, run tests, and more.</p>
          <h3>Tooling setup</h3>
          <p>Bootstrap uses NPM scripts for its build system. Our package.json includes convenient methods for working with the framework, including compiling code, running tests, and more.</p>
          <p>To use our build system and run our documentation locally, you’ll need a copy of Bootstrap’s source files and Node. Follow these steps and you should be ready to rock:</p>
          <ol>
            <li>Download and install Node.js, which we use to manage our dependencies.</li>
            <li>Navigate to the root /bootstrap directory and run npm install to install our local dependencies listed in package.json.</li>
            <li>Install Ruby, install Bundler with gem install bundler, and finally run bundle install. This will install all Ruby dependencies, such as Jekyll and plugins.
              <ul>
                <li>Windows users: Read this guide to get Jekyll up and running without problems.</li>
              </ul>
            </li>
          </ol>
          <h3>Local documentation</h3>
          <p>Running our documentation locally requires the use of Jekyll, a decently flexible static site generator that provides us: basic includes, Markdown-based files, templates, and more. Here’s how to get it started:</p>
          <ol>
            <li>Run through the tooling setup above to install Jekyll (the site builder) and other Ruby dependencies with bundle install.</li>
            <li>From the root /bootstrap directory, run npm run docs-serve in the command line.</li>
            <li>Open http://localhost:9001 in your browser, and voilà.</li>
          </ol>
          </section>
        
        <section class="main-section" id="Webpack">
            <header>Webpack</header>
            <p>Learn how to include Bootstrap in your project using Webpack 3.</p>
        </section>
    
        <section class="main-section" id="Accessibility">
            <header>Accessibility</header>
            <p>Learn how to include Bootstrap in your project using Webpack 3.</p>
        </section>

        <section class="main-section" id="Reference">
            <header>Reference</header>
            <p>Learn how to include Bootstrap in your project using Webpack 3.</p>
        </section>
    
  </main>
  <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>


</body>

<footer></footer>
              
            
!

CSS

              
                * {
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  margin: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #bcfffb;
  border-right: 2px solid #333;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: flex-start;
  overflow-y: auto;
}



nav img {
  display: block;
  margin-bottom: 0px;
  margin-left: 44px;
  margin-top: -35px;
  align-items: center;
  width: 150px;
  height: 150px;
  object-fit: scale-down;
  padding: 0px 10px 0px 10px;
  align-items: center;
}

#header {
  font-size: larger;
  color: #0066ff;
  text-align: left;
  margin-top: 0px;
  margin-bottom: 10px;
  padding: 0px 15px 10px;
  text-decoration: none;
  object-fit: scale-down;
}

nav a {
  display: block;
  text-decoration: none;
  padding: 20px 15px;
  color: #222c6a;
  text-transform: none;
  letter-spacing: 0.05em;
  border-top: 1px solid #cbcbb4;
}

/* css for right pane content */
.main-section {
    margin-left: 300px;
}

header {
  font-size: 2em;
  font-weight: bold;
  color: #002699 !important;
  padding-top: 20px;
  
}

p {
  padding-left: 20px;
}

h3 {
  color: #0066ff !important;
  padding-left: 10px;
}

code {
  padding-left: 1px !important;
  overflow: scroll;
}

figure {
  display: block !important;
  margin-top: 20px !important;
  margin-left: 20px !important;
  max-height: 50px;
  overflow: scroll;
  
}

pre {
  display: block;
  margin-left: 20px !important;
}

@media only screen and (max-width: 720px) {
  .main-section {
    margin-left: 0px;
    position: relative;
    margin-top: 250px;
    padding: 20px;
  }
  
  #navbar{
    postion: absolute;
    width: 100%;
    max-height: 275px;
    border: none;
    z-index: 1;
    border-bottom: 2px solid;
  }
}



              
            
!

JS

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

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - 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. 

              
            
!
999px

Console