A Pen by Marcelo Tosco on CodePen.
Last active
August 29, 2015 14:06
-
-
Save capynet/2f8502502186b18456ad to your computer and use it in GitHub Desktop.
Search form responsive
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
<h1>Resize the window</h1> | |
<form> | |
<div class="form-element textfield"> | |
<input type="text"> | |
</div> | |
<div class="form-element submit-btn"> | |
<input type="submit" value="Search"> | |
</div> | |
</form> |
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
.form-element { | |
display: table-cell; | |
box-sizing: border-box; | |
} | |
.textfield { | |
width:100% | |
} | |
.textfield > input { | |
width:100% | |
} | |
/********************************* | |
This is just some styling. | |
*********************************/ | |
form { | |
background: purple; | |
padding:12px; | |
} | |
input { | |
padding:10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment