title: Using html, css to create a google search page look alike
body: <p>Help needed,</p>
  <p>I used position:absolute to position both my google logo, the search bar and the buttons.</p>
  <p>There are other ways that are more time effective and that will give a much cleaner code (I am looking for better options as I am still very green at this...)</p>
  <p>That said, is there a way I can do nav-bar for elements that I want on the bottom of my page. Elements that some will be aligned to the left and others to the right.?</p>
  <p>These are my code below:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: transparent;
  }
  
  li {
    display: block;
    float: right;
  }
  
  li a {
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  button a {}
  
  .google-logo {
    position: absolute;
    margin: 10em 32.5em;
  }
  
  .feeling-lucky {
    position: absolute;
    margin: 20em 32.5em;
    width: 400px;
  }
  
  #searchbar {
    position: absolute;
    top: 260px;
    left: 375px;
    width: 580px;
    height: 30px;
    border: 1px solid #cdcdcd;
  }
  
  #search_button {
    position: absolute;
    top: 310px;
    left: 550px;
    border: 1px solid #dcdcdc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #444!important;
    font-size: 11px;
    font-weight: bold;
    padding: 8px;
    background: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
    border-radius: 2px;
  }
  
  #lucky_button {
    position: absolute;
    top: 310px;
    left: 680px;
    border: 1px solid #dcdcdc;
    border-color: rgba(0, 0, 0, 0.1);
    color: #444!important;
    font-size: 11px;
    font-weight: bold;
    padding: 8px;
    background: -webkit-linear-gradient(top, #f5f5f5, #f1f1f1);
    border-radius: 2px;
  }
  
  .footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
    background-color: #efefef;
    text-align: center;
    margin: : 20em;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
    &lt;title&gt;Google Homepage&lt;/title&gt;
    &lt;link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"&gt;
    &lt;link rel="stylesheet" type="text/css" href="./style.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
    &lt;nav class="header"&gt;
      &lt;div class="col-xs-8"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;&lt;i class="fa fa-2x fa-user-circle-o" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;&lt;i class="fa fa-2x fa-bell" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;&lt;i class="fa fa-2x fa-bars" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Images&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Mail&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/nav&gt;
    &lt;div class="google-logo"&gt;
      &lt;img src="images/google-logo.jpg" height="85px" width="250px" alt="google-logo" title="google-logo"&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;input type="text" name="searchBar" id="searchbar" placeholder="Search Google or Type URL"&gt;
      &lt;input type="button" value="Google Search" id="search_button"&gt;
  
    &lt;/div&gt;
    &lt;input type="button" value="I'm Feeling Lucky" id="lucky_button"&gt;
    &lt;/br&gt;
    &lt;div class="footer"&gt;
      &lt;a href="#"&gt;Advertising&lt;/a&gt;&lt;a href="#"&gt;Business&lt;/a&gt;&lt;a href="#"&gt;About&lt;/a&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>