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

              
                <div id="footer">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https:/stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="stylesheet.css">
    <title>Document</title>

</head>
<body>
  
  <div class="footer-container">
    <div class="mainfooter">
        <div class="socials">
            <a href="https://www.facebook.com"><i class="fa fa-facebook"></i></a>
            <a href="https://twitter.com"><i class="fa fa-twitter"></i></a>
            <a href="#"><i class="fa fa-dribbble"></i></a>
            <a href="#"><i class="fa fa-youtube"></i></a>
            <a href="#"><i class="fa fa-tumblr"></i></a>
            </div>

            <div class=footer 1>
                <h2>Adress</h2>
                <a href="#">Allé 30</a>
                <a href="#"></a>
                <a href="#">Finland</a>




               



               
            
            </div>
            <div class=footer 2>
                <h2>Contact</h2>
                <a href="#">Mail</a>
                <a href="#">About</a>
                <a href="#">Call us</a>
            </div>
            <div class=footer 3>

              <div class="search-box">
                <input type="text" placeholder="Type to search.." class="boxholder">

              


                <div class="search-icon">
    <svg version="1.1" class="cancel-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="20px" height="20px" viewBox="375.045 607.885 30.959 30.33" enable-background="new 375.045 607.885 30.959 30.33" xml:space="preserve">
         <path fill="#494949" d="M405.047,633.805l-7.007-6.542c-0.129-0.121-0.267-0.226-0.408-0.319c1.277-1.939,2.025-4.258,2.025-6.753 c0-6.796-5.51-12.306-12.307-12.306s-12.306,5.51-12.306,12.306s5.509,12.306,12.306,12.306c2.565,0,4.945-0.786,6.916-2.128 c0.122,0.172,0.257,0.337,0.418,0.488l7.006,6.542c1.122,1.048,2.783,1.093,3.709,0.101 C406.327,636.507,406.169,634.853,405.047,633.805z M387.351,629.051c-4.893,0-8.86-3.967-8.86-8.86s3.967-8.86,8.86-8.86 s8.86,3.967,8.86,8.86S392.244,629.051,387.351,629.051z" />
    </svg>
 </div>



                



          


            <svg version="1.1" class="cancel-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="20px" height="20px" viewBox="375.045 607.885 30.959 30.33" enable-background="new 375.045 607.885 30.959 30.33" xml:space="preserve">
              <path fill="#494949" d="M405.047,633.805l-7.007-6.542c-0.129-0.121-0.267-0.226-0.408-0.319c1.277-1.939,2.025-4.258,2.025-6.753 c0-6.796-5.51-12.306-12.307-12.306s-12.306,5.51-12.306,12.306s5.509,12.306,12.306,12.306c2.565,0,4.945-0.786,6.916-2.128 c0.122,0.172,0.257,0.337,0.418,0.488l7.006,6.542c1.122,1.048,2.783,1.093,3.709,0.101 C406.327,636.507,406.169,634.853,405.047,633.805z M387.351,629.051c-4.893,0-8.86-3.967-8.86-8.86s3.967-8.86,8.86-8.86 s8.86,3.967,8.86,8.86S392.244,629.051,387.351,629.051z"/>
          



                  
                </svg>
          <div class="search-data">
          </div>
          </div>


            </div>
            
        </div>
    </div>

    



    <script>

const searchBox = document.querySelector(".search-box");
      const searchBtn = document.querySelector(".search-icon");
      const searchInput = document.querySelector("input");
      const searchData = document.querySelector(".search-data");
      const cancelBtn = document.querySelector(".cancel-icon");
      let isSearchbarOpen = false;
      searchBtn.onclick = () => {
        // if search bar is closed, open it (and set isSearchbarOpen to true)
        if (!isSearchbarOpen) {
          isSearchbarOpen = true;
          searchBox.classList.remove("active");
          searchBtn.classList.remove("active");
          searchInput.classList.remove("active");
          cancelBtn.classList.remove("active");
          cancelBtn.classList.remove("active");
          searchData.classList.toggle("active");
          searchInput.value = "";
        } else {
          // if search bar is open, close it (and set isSearchbarOpen to false)
          isSearchbarOpen = false;
          searchBox.classList.add("active");
          searchBtn.classList.add("active");
          searchInput.classList.add("active");
          cancelBtn.classList.add("active");
          searchInput.focus();
          if (searchInput.value != "") {
            var values = searchInput.value;
            searchData.classList.remove("active");
            searchData.innerHTML =
              "You just typed " +
              "<span style='font-weight: 500;'>" +
              values +
              "</span>";
          } else {
            searchData.textContent = "";
          }
        }
      };

    </script>

<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
</body>
</div>
              
            
!

CSS

              
                /*Here begins the footer*/



.footer-container {
background-color: #000080;
display: flex;
position: relative;
width: 100%;
margin-bottom: 0px;
align-items: center;
padding-bottom: 4rem 0 4rem 0;

}

.mainfooter {
  width: 100%;
  height: 42vh;
  justify-content: center;
  display: flex;
  color: white;
  margin: 0 auto;
  align-items: center;
  background-color: #000080;
  position: absolute;
  margin-bottom: 0px;
}

.footer {
  display: flex;

  flex-direction: column;
  margin-right: 2rem;
    margin-top: 2rem;
}
.footer h2 {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.footer a {
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer a:hover {
  cursor: pointer;
  color: greenyellow;
}

@media screen and (max-width: 400px){
  .Header nav{
    padding: 0 10px;
  }

  .content .logo a{
    font-size: 27px;
  }
  .logo {
    font-size: 2px;
  }
  .Header .search-box{
    max-width: calc(100% - 70px);
  }
  .Header .search-box .go-icon{
    width: 30px;
    right: 0;
  }
  .Header .search-box input{
    padding-right: 30px;
  }

  .dummy-text{
  position: absolute;
  top: 30%;
  left: 90%;
  right: 2%;
  width: 60%;
  z-index: -1;
  text-align: left;
  transform: translate(-50%, -50%);
  font-size: 14px;
  }
  .dummy-text h2{
  font-size: 14px;
  }
}

/*Here begins the second search box*/

::selection{
  color: #fff;
  background: #664AFF;
}
.search-box{
  position: relative;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  box-shadow: 5px 5px 30px rgba(0,0,0,.2);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  color: red;
  
  
}
.search-box.active{
  width: 550px;
  height: 50px;
}
.search-box input{
 
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 50px;
  background: #fff;
  outline: none;
  padding: 0 60px 0 20px;
  font-size: 18px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.search-box input.active{
  opacity: 1;
  border-radius: 50px;
  position: absolute;
  left: 180px;
  right: 260px;

}
.search-box input::placeholder{
  color: #a6a6a6;
  position: absolute;
}
.search-box .search-icon{
  display: flex;
  right: 0px;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  height: 60px;
  width: 60px;
  background: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 22px;
  color: #664AFF;
  cursor: pointer;
  z-index: 40;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  justify-content:center;
  align-items:center;
}
.search-box .search-icon.active{
  right: 0px;
  left: 410px;
  height: 50px;
  line-height: 50px;
  width: 50px;
  font-size: 20px;
  background: #664AFF;
  color: #fff;
  transform: translateY(-50%) rotate(360deg);
  z-index: 40;

}

.search-box .cancel-icon{
  position: absolute;
  right: 10px;
  left: 220px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  color: #fff;
  pointer-events:none;
  transition: all 0.5s 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 40;
}

.search-box .cancel-icon.active{
  position: absolute;
  top: 28px;
  right: -300px;
left: 427px;
  transform: translateY(-50%) rotate(360deg);
  z-index: 40;
}

.search-box .search-data{
  text-align: center;
  padding-top: 7px;
  color: #fff;
  font-size: 18px;
  word-wrap: break-word;
}
.search-box .search-data.active{
  display: none;
}



/* annat */

.navbar li:nth-child(2) {
  background-color: darkblue;
  width: 156%;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: 400rem;
}
.navbar li:nth-child(2) a {
  color: white;
}

/* Socials */

.socials {
  color: white;
  position: relative;
  left: -255px;
  margin-left: 4rem;
  margin-right: -2rem;
  background-repeat: no-repeat;
}

.socials a{
  background: linear-gradient(45deg, darkblue, white, darkblue,darkblue, white);
  width:40px;
  height:40px;
  display:inline-block;
  margin-right:10px;
  color: white;
}

.socials a i{
  color: #e7f2f4;
  padding: 10px 12px;
  font-size: 20px;
}

/* Här slutar Socials */

/* HERE BEGINS CONTACT FORM */
  
    
input[type=text], select, textarea {
  width: 50%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 16px;
  resize: vertical;

}

input[type=submit] {
  background-color: #0d2840;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 10%;

}

   
input[type=submit]:hover {
  background-color: hsl(244, 92%, 42%);
}

.container2 {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}*/

 /* HERE ENDS THE CONTACT FORM */

 /*Here begins second search box*/

 @import url(https://fonts.googleapis.com/css?family=Open+Sans);

body{
  background: #f2f2f2;
  font-family: 'Open Sans', sans-serif;
}

.search {
  width: 100%;
  position: relative;
  display: flex;
}

.searchTerm {
  width: 100%;
  border: 3px solid #00B4CC;
  border-right: none;
  padding: 5px;
  height: 20px;
  border-radius: 5px 0 0 5px;
  outline: none;
  color: #9DBFAF;
}

.searchTerm:focus{
  color: #00B4CC;
}

.searchButton {
  width: 40px;
  height: 36px;
  border: 1px solid #00B4CC;
  background: #00B4CC;
  text-align: center;
  color: #fff;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 20px;
}

/*Resize the wrap to see the search bar change!*/
.wrap{
  width: 30%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*Here ends it*/
              
            
!

JS

              
                
              
            
!
999px

Console