Created
November 26, 2014 11:14
-
-
Save volpeo/bbafedb671e30b4e880c to your computer and use it in GitHub Desktop.
Button left + 100% input // source http://jsbin.com/vihuri
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.left{ | |
float: left; | |
} | |
.right{ | |
overflow: hidden; | |
} | |
.text{ | |
width: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div> | |
<div class="left"> | |
<input type="button" value="I can be larger"> | |
</div> | |
<div class="right"> | |
<input type="text" class="text"> | |
</div> | |
</div> | |
<script id="jsbin-source-css" type="text/css">.left{ | |
float: left; | |
} | |
.right{ | |
overflow: hidden; | |
} | |
.text{ | |
width: 100%; | |
} | |
</script> | |
</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
.left{ | |
float: left; | |
} | |
.right{ | |
overflow: hidden; | |
} | |
.text{ | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment