title: jQuery datepicker stretched out (wrong layout)
body: <p><img src="https://i.stack.imgur.com/b2p8R.jpg" alt="enter image description here"></p>
  
  <p>For some reason, my jQuery datepicker looks like the one above... I can't seem to figure out how to fix this.</p>
  
  <p>Code (shortened):</p>
  
  <pre><code>//References
  
  &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/&gt;
      &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;
  
  //Datepicker code
  
  &lt;div id="datepicker" name="datepicker"&gt;&lt;/div&gt;
  &lt;script&gt;
      $(document).ready(function() {
          $("#datepicker").datepicker({
              altField: "#realdate",
              altFormat:"yy-mm-dd",
              dateFormat: "yy-mm-dd"
          });
      });
  &lt;/script&gt;
  
  //Hidden field to store my date
  
  &lt;input type="hidden" name="realdate" value="" id="realdate"&gt;
  </code></pre>
  
  <p>Placing the div under the script doesn't work. What DOES work however is the following:</p>
  
  <pre><code>&lt;input type='text' id='datepicker' name='datepicker' /&gt;
  </code></pre>
  
  <p>This displays an input field that, when clicked upon, displays a correctly rendered datepicker. But I don't want the input field, I just want the datepicker...</p>
  
  <p><strong><em>EDIT</em></strong></p>
  
  <p>Ok, It seems I've found the evil-doer:</p>
  
  <pre><code>.ui-helper-clearfix::after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
  }
  </code></pre>
  
  <p>from the jquery css. 
  My problem is fixed by removing "display: block;"
  Problem is, this css file is located online. I can't put it offline in my own css folder because it references a bunch of images etc. Is there any way I can override this class or something to make my fix work?</p>