Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to reduce the div height

Tags:

css

jsp

<div class="row-fluid">
  <div class="span6">
    <div class="control-group checkForError">
      <label class="control-label" for="Client">Client</label>
      <div class="controls">
        <input style="height: 100px" type="text" name="Client" id="Client" readonly="readonly" class="m-wrap span4 clrField" tabindex="1">
        <input type="text" name="name" id="name" readonly="readonly" class="m-wrap span8 clrField" tabindex="2">
      </div>
    </div>
  </div>
</div>

Now I want to reduce the div height.
I am tried with min-height but its not reduces.
If I increase height it is increasing.

like image 812
shas Avatar asked Sep 11 '25 19:09

shas


1 Answers

You need to use max-height not min-height!

div{
max-height: 100px;
height: 100%;
}
like image 76
Bhojendra Rauniyar Avatar answered Sep 13 '25 10:09

Bhojendra Rauniyar