I am currently using display: table
and display: table-cell
to vertically align multiple divs. However, I have encountered an issue when animating the opacity with jQuery using either fadeTo()
or fadeIn
. The problem is that it always adds inline style display: block
. How can I prevent the display type from changing during and after the opacity animation?