Two Column layout with Nav bar and Content displaying PDF in Content - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Two Column layout with Nav bar and Content displaying PDF in Content

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

html, body {
   height: 100%;
   width: 100%;
   padding: 0px;
   margin: 0px;
   background-color:#808080;
}
#nav {<!--   w ww.  j  a  v  a 2  s  .  com-->
   position: absolute;
   height: 100%;
   width: 150px;
   top: 0;
   left: 0;
   background-color:#C0C0C0;
}
#content {
   top: 0px;
   height: 100%;
   margin-left: 150px;
   background-color: red;
}
iframe#pdf {
   width:100%;
   height:100%;
}


      </style> 
 </head> 
 <body> 
  <div id="nav"> 
   <fieldset class="lookupFields"> 
    <div> 
     <label for="book">Book:</label> 
     <input type="text" id="book" size="5"> 
    </div> 
    <div> 
     <label for="page">Page:</label> 
     <input type="text" id="page" size="5"> 
    </div> 
    <div> 
     <input type="button" id="btnViewImage" value="View"> 
    </div> 
   </fieldset> 
  </div> 
  <div id="content"> 
   <iframe id="pdf" frameborder="0" src="http://your pdf file"> </iframe> 
  </div>  
 </body>
</html>

Related Tutorials