Vertical-align table inside div
Vertical-align is not working.
position: absolute of the div can't be removed in my project.
Start by adding "px" to the 'left' and 'height' settings and removing the 'align' setting in #myOuter. Then run your code through a CSS and HTML validator.
Thanks, but nothing happens.
Sorry. I was in a rush and just spotted some syntax errors that might have been a problem.
The bad news is that you can't vertically center dynamic elements with CSS. The good news is that you can vertically center elements with fixed dimensions, although it takes a bit of doing and some understanding of CSS positioning. See my article on Centering Elements with CSS. The trick for vertical centering is at the bottom.
centering text and div Inside a <div> is easier, I can center them well.
Problem is that table can not be centered inside a div if the div has style="position: absolute;"
This is what I want to do.
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)