responsive design - How to Vertically center images and text in CSS -


Here I have it here and I have the header in the title, the picture in the footer and the middle of the photo which is placed at the top ... I do not know how to achieve this and I have already collected some things but there is no use. I hope here for your help (=

Link to JSfield:

HTML:

  & lt; body & gt; Lt; div id = "header" & gt; & lt; h1 & gt; test text but it is not within the actual div ...    Div id = "content" & gt; & lt; div id = "topcontent" & gt; img src = "http://www.curiousfix.com/wp-content/uploads/2013/06/only_god_forgives_xxlg- 2000x2964.jpg "id =" left ">   gt; & lt; / Div> & lt; / br & gt; & lt; div id = "botcontent" & Gt; & lt; div class = "slider container" & gt; & lt; div id = "area" & gt; & lt; div id = "knob" & gt; & lt; / div & gt; & lt; ; / Div> & lt; / div & gt; & lt; / div & gt; & lt; / div & gt; & lt; div id = "footer" & gt; & lt; img src = "http : //www.duv-ev.de/images/Leiste_Impressum_511x127_rgb-srgb_72.jpg "/> & Lt; / Div & gt;  

CSS:

  body, html {height: 98%; } #header {height: 15.69%; Background color: gray; Line-height: 15.6 9%; } #header h1 {text-align: center; White color; Vertical-row: middle; } # Content {height: 71.16%; Left: 0; Margin-left: 15%; Margin-right: 15%; Correct: 0; } #topcontent {height: 56.245%; } .slidercontainer {width: 100%; } # Boss content {height: 43.755%; } IMG {max-height: 100%; } #footer {text-align: center; Background color: gray; Height: 13.15%; } # Left {float: left; Margin-left: 10%; Max-width: 30%; } #right (float: right; max-width: 30%; margin-right: 10%;} # MID {display: block; margin-left: auto; margin-right: auto; max-width: 10%;} #area {background: gray; height: 6em; width: 100%; boundary-radius: 1am;} #knob {height: 6em; width: 6 AM; background: orange; boundary-radius: 1 am;}  

: Center; vertical-align: middle; width: 100%;}

I hope this helps.


Comments