What?
So this is a quick article to demo how to center an iframe horizontally and vertically in a screen/viewport in pure CSS (no JavaScript allowed). This CSS centers it by its center point rather ...
...
See my JsFiddle jsfiddle.net/Jlipman/4kj96rL0/1
Submitted by Ike
This version submitted as an update is a little smoother as it adds a font-size transition:
ul li{
display: inline-block;
...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.