We would like to know how to create Label/input fixed-fluid layout in forms.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
label {<!--from w w w. j av a 2 s. c o m-->
display: inline-block;
width: 95px;
}
input {
box-sizing: border-box;
width: calc(100% - 100px);
}
</style>
</head>
<body>
<form>
<label for="name">Name:</label>
<input id="name" />
<label for="email">Email:</label>
<input id="email" />
</form>
</body>
</html>
The code above is rendered as follows: