I am working on a horizontal layout form:
<div id="container">
<label for="ta">description</label>
<textarea id="ta" name="ta" cols="50" rows="10"></textarea>
</div>
The problem is that I want textarea to take up all the free space that the label leaves on one line. If I try with width = 100%, it will go to the next line:
div * {
vertical-align: middle;
}
textarea {
width: 100%;
height: 300px;
}
Any idea to implement it without assigning a fixed space for each tag?
source
share