javascript - Setting DIV's height automatically when it's lower than some specific value -


I'm using a DIV to wrap the table to provide scrolling as shown here:

The list is large, but when the list is small, then it works fine: you can see that "select all" and "clear all" first gets away from the table which is not me needed.

I know that the reason is a certain height of the DIV which is 300px. What do I need that the height of DIV should not exceed 300px and if the height of the DIV should be changed automatically if it is less than 300px. So that select all and clear all the buttons just below the table.

  .tableScroll {height: 300px; Overflow: Auto; }   

I think you only use maximum-height: 300px You may want to do; height: 300px; Instead of

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -