I have a table and I want to define the min-width and max-height properties. See the example below.
My problem now is that the browser is not accepting it. If I define it on td , it is ignored, if I define it on the div element inside the td element, the contents have minimum and minimum width, but the table still has the same size. (therefore there is a lot of free space: /)
How can i solve this?
EDIT: I just noticed that the problem only occurs when the table is in full screen. However, the element should have no more maximum width than!
Example:
<html> <head> <style type="text/css"> td { border: 1px solid black; } html,body,.fullheight { height: 100%; width: 100%; } .minfield { max-width: 10px; border: 1px solid red; overflow: hidden; } </style> </head> <body> <table class="fullheight"> <tr> <td class="minfield"> <div class="minfield"> <p>hallo</p> </div> </td> <td><p>welt</p></td> </tr> </table> </body> </html>
html css html-table table
Stefan Jun 21 2018-11-21T00: 00Z
source share