3 ms·
The one about vertical-align seems wrong. I use it all the time when aligning text next to images and that has nothing to do with tables afaik. https://develop
by Kiro 10y ago
The one about vertical-align seems wrong. I use it all the time when aligning text next to images and that has nothing to do with tables afaik.
https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-al...
- isaaclyman 10y agoYeah...I wouldn't say that "accuracy" was one of the main goals of this post per se.
- Kiro 10y agoOh, sorry. I only skimmed it and missed the gist of it.
- derimagia 10y agoVertical align needs to be in a table cell. Although most of the article is satire, vertical align has a lot to do with tables. Centering only works in table-cell elements. Take a look at the code http://howtocenterincss.com/#contentType=text&horizontal=center&vertical=middle&browser.IE=9 http://howtocenterincss.com/#contentType=text&horizontal=cen... Or, one of the references mozilla links to there is: http://phrogz.net/css/vertical-align/index.html http://phrogz.net/css/vertical-align/index.html