Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>EDIT</strong></p> <p>I'd like to include owencm's comment for people stumbling across this question, as i find it quite elegant:</p> <p><strong>CSS</strong></p> <pre><code>input.holo[type='text'] { /* You can set width to whatever you like */ width: 200px; font-family: "Roboto", "Droid Sans", sans-serif; font-size: 16px; margin: 0; padding: 8px 8px 6px 8px; position: relative; display: block; outline: none; border: none; background: bottom left linear-gradient(#a9a9a9, #a9a9a9) no-repeat, bottom center linear-gradient(#a9a9a9, #a9a9a9) repeat-x, bottom right linear-gradient(#a9a9a9, #a9a9a9) no-repeat; background-size: 1px 6px, 1px 1px, 1px 6px; } input.holo[type='text']:hover, input.holo[type='text']:focus { background: bottom left linear-gradient(#0099cc, #0099cc) no-repeat, bottom center linear-gradient(#0099cc, #0099cc) repeat-x, bottom right linear-gradient(#0099cc, #0099cc) no-repeat; background-size: 1px 6px, 1px 1px, 1px 6px; } </code></pre> <p><strong>HTML</strong></p> <pre><code>&lt;input type='text' class='holo'/&gt; </code></pre> <p><strong>JSFiddle</strong> <a href="http://jsfiddle.net/QKm37/" rel="noreferrer">http://jsfiddle.net/QKm37/</a></p> <p><strong>Original Solution</strong></p> <pre><code>&lt;span style=" border-bottom: solid 1px cyan; border-left: solid 1px cyan; margin: 20px; border-right: solid 1px cyan; overflow: visible; max-height: 0.2em; display: inline-block; padding: 2px; "&gt; &lt;input type="text" style=" outline: none; border: none; background: transparent; display: inline-block; position: relative; bottom: 0.8em; "&gt; &lt;/span&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload