I want to set the height on a div when the div is more than 100px in height.
For example, when the content of the div makes the div\'s height fill more than 100px, I wan
You can just work with min-height and max-height with CSS.
div#myDiv {
min-height: 100px;
height: auto;
max-height: 200px;
}
you could also do something with javascript as said, but with this you can also have the possibility that the height is 150px, or 120px. if you don't want that, You should do it the javascript-way.