Responsive full height two column website, image inside one column - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Responsive full height two column website, image inside one column

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ull</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body {<!--from   ww w .  j  a  v  a2 s .c  o m-->
   margin:0;
   padding:0;
}

#container {
   width:100%;
   height:100vh;
   overflow:hidden;
}

#column1 {
   position:relative;
   width:calc(51% - 5px);
   height:calc(100% - 5px);
   display:inline-block;
   border:3px solid Chartreuse;
}

#column1 span {
   display:block;
   position:relative;
   top:51%;
   transform:translateY(-51%);
   padding:11px;
}

#column2 {
   position:relative;
   top:-51%;
   left:51%;
   width:calc(51% - 3px);
   height:calc(51% - 5px);
   display:inline-block;
   border:3px solid yellow;
   border-left:none;
}
</style> 
 </head> 
 <body> 
  <div id="container"> 
   <div id="column1"> 
    <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consec</span> 
   </div> 
   <footer id="column2"></footer> 
  </div>  
 </body>
</html>

Related Tutorials