Skip to content

Instantly share code, notes, and snippets.

@volpeo
Created November 26, 2014 11:14
Show Gist options
  • Save volpeo/bbafedb671e30b4e880c to your computer and use it in GitHub Desktop.
Save volpeo/bbafedb671e30b4e880c to your computer and use it in GitHub Desktop.
Button left + 100% input // source http://jsbin.com/vihuri
<!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>
.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