- - Code, Content, and Presentation
- -- CSS
- ---- Centre div vertically and horizontally
greencode - 9:21 pm on Nov 11, 2013 (gmt 0)
Thanks but I will not always know the height of the container. This is a responsive site and therefore the height of the image will be set to auto.
Thread source: http://www.webmasterworld.com/css/4622546.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com