Created
August 23, 2012 04:16
-
-
Save geta6/3432237 to your computer and use it in GitHub Desktop.
maximise `input` element according as parent element.
This file contains 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> | |
<head> | |
<link rel='stylesheet' href='style.css'> | |
</head> | |
<body> | |
<div id='parent'> | |
<input id='input' type='text'> | |
</div> | |
</body> | |
</html> |
This file contains 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
#input { | |
display: block; | |
padding: 6px 24px; | |
width: 100%; | |
height: 24px; | |
border: none; | |
background: rgba(255,255,255,0.84); | |
-webkit-box-sizing: border-box; | |
-khtml-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
-ms-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
#parent { | |
margin: 60px auto; | |
padding: 10px; | |
width: 480px; | |
height: 270px; | |
background: red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment