Created
October 21, 2011 14:02
-
-
Save gdamjan/1303934 to your computer and use it in GitHub Desktop.
stretch input field to 100%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <!-- WILL NOT WORK with the HTML5 doctype --> | |
| <div class="text-stretch"> | |
| <input /> | |
| </div> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* hack to stretch an input element */ | |
| .text-stretch input { width: 100%; } | |
| .text-stretch { padding: 2px 8px; } | |
| * html .text-stretch { padding: 2px 10px; } | |
| * html .text-stretch input { margin-right: -11px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Really helpful ✨ Thank you!