I think I'm going mad as I'm sure I've done this successfully before!
I have a div containing text and an image. I need both image and text centred within the containing div.
I have this so farů
Unknown stuff to be centered.
<img src="image.jpg" height="300px" width="300px" alt="" />
The thing is as this is a responsive site I won't always know the height of the containing div.
Any help would be greatly appreciated.