I am trying to center h3 and p elements inside a div, Bootstrap's .carousel-caption to be more exact. I have given .carousel-caption fixed height and width. I am trying to align h3 and p together vertically to the center of theid parent div like this:
–––––––––––––––––––––––––––––––––––––––––––––––
|.carousel-caption |
| |
| |
| –––––––––––––––––––––––––––––––––––––––––– |
| |h3 | |
| –––––––––––––––––––––––––––––––––––––––––– |
| –––––––––––––––––––––––––––––––––––––––––– |
| |p | |
| | | |
| –––––––––––––––––––––––––––––––––––––––––– |
| |
| |
| |
–––––––––––––––––––––––––––––––––––––––––––––––
I have code in this fiddle http://jsfiddle.net/pYjnF/ that works at least with Chrome but i am trying to achieve browser support for desktop C28+ FF22+ S6 IE10 and mobile support for iOs 6+ safari & Android 4.0+ Chrome.
Any suggestions?