How can I vertically center a “div” element for all browsers using CSS?

Below is the best all-around solution I could build to vertically and horizontally center a fixed-width, flexible height content box. It was tested and worked for recent versions of Firefox, Opera, Chrome, and Safari.  Run code snippetExpand snippet View A Working Example With Dynamic Content I built in some dynamic content to test the flexibility and would … Read more

Making an iframe responsive

I present to you The Incredible Singing Cat solution =) jsFiddle: http://jsfiddle.net/omarjuvera/8zkunqxy/2/As you move the window bar, you’ll see iframe to responsively resize Alternatively, you may also use the intrinsic ratio technique This is just an alternate option of the same solution above (tomato, tomato)

What’s the difference between display:inline-flex and display:flex?

display: inline-flex does not make flex items display inline. It makes the flex container display inline. That is the only difference between display: inline-flex and display: flex. A similar comparison can be made between display: inline-block and display: block, and pretty much any other display type that has an inline counterpart.1 There is absolutely no difference in the effect on flex items; flex layout is identical whether … Read more

Superscript in CSS only?

You can do superscript with vertical-align: super, (plus an accompanying font-size reduction). However, be sure to read the other answers here, particularly those by paulmurray and cletus, for useful information.

Gradient borders

WebKit now (and Chrome 12 at least) supports gradients as border image: Prooflink — http://www.webkit.org/blog/1424/css3-gradients/Browser support: http://caniuse.com/#search=border-image