cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<div class= "container text-center">
  <div class="row">
    <div class ="col-lg-12">
  <input class="from-control" id="search-box">
    <div class ="col-lg-12">
  <button id="search" type ="button" class="btn btn-primary">Submit</button>
  <a href ="https://en.wikipedia.org/wiki/Special:Random" target="_blank"><button id="search" type ="button" class="btn btn-info">Random</button></a>
    <div class="col-lg-12">
  <ul id ="output-list">
  <a href ="https://www.freecodecamp.com/sageneonel"> <p id="credit"> Inspired by Free Code Camp</p></a>
  font-family: 'Oswald', sans-serif; font-size:16px;
h1{font-family: 'Merriweather', serif;
body{background: url("https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Wikipedia_mini_globe_handheld.jpg/770px-Wikipedia_mini_globe_handheld.jpg")no-repeat fixed center;
#output-list li{list-style-type:none;
border:1px solid white;
background:rgba(204, 255, 255,.6);
box-shadow:2px 2px 10px 2px;
#output-list li a{ font-family: 'Merriweather', serif;

#search-box{width:50%;box-shadow:2px 2px 5px;}
  background:rgba(204, 255, 255,.6);}
              $(document).ready(function() {
  // when search button is clicked  show results
  $('#search').click(function() {
    var searchBox = $("#search-box").val();
    //what ever is typed in the serach box gets added to the url search
    var url = "https://en.wikipedia.org/w/api.php?action=opensearch&search=" + searchBox + "&format=json&callback=?";

      type: "GET",
      url: url,
      async: false,
      dataType: "json",
      success: function(data) {
        for (var i = 0; i < data[1].length; i++) {
          $('#output-list').prepend("<li><a href=" + data[3][i] + " >" + data[1][i] + "</a><p>" + data[2][i] + "</p></li>");
      error: function(errorMessage) {

  //allows user to press enter key for searches
  $("#search-box").keypress(function(e) {
    if (e.which == 13) {
Loading ..................