Polly Polly - 5 months ago 14
HTML Question

how extends the input field until at div end

This is my bootstrap/html code:

<div class="col-md-8">
<label for="label_test_email">Put email</label>
<input type="text" class="form-control" id="test_email" name="test_email" />
</div>


the position is correct but I want that the size of input field extends until the div end. Anyone can help me?

Answer

Just specify the width in percentage like this :

#label_test_email{
  width:10%;
}
#test_email{
  width:90%;
}

Here is the working jsFiddle

Hope it helps :)

Comments