Hey.
How to align the height (middle) of the table inside the block?
Here is the code:
<html> <head> <style> *{ margin:0px; padding:0px; } #div4{ background-color:red; height:300px; } #table1{ display:inline-block; vertical-align:middle; } </style> </head> <body> <div id="div4"> <table id="table1"> <tr> <td id="td1"><img id="girl" src="images/girl.jpg"/></td> </tr> </table> </div> </body> </html>
Why assignment to a display table : inline-block; vertical-align: middle; does not work? It works with pictures and other small elements.