Skip to content

Instantly share code, notes, and snippets.

@Holek
Created February 19, 2013 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Holek/4986761 to your computer and use it in GitHub Desktop.
Save Holek/4986761 to your computer and use it in GitHub Desktop.
text-like inputs
/**
* text-like inputs
*/
table input[type="text"] {
border: 1px solid transparent;
background: white;
padding: 3px 5px;
}
table input[type="submit"] {
visibility:hidden}
table:hover input[type="submit"] {
visibility:visible;
}
table:hover tbody input[type="text"] {
border-color: #e0e0e0;
background: white url(img/bg-sk-24.png) repeat-x scroll 0 -1111px;
}
<table>
<tr>
<td><form>
<input type="text" placeholder="Text here!">
<input type="submit"></form>
</td>
</tr>
</table>
// alert('Hello world!');
{"view":"split","fontsize":"80","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment