Footer to resize image in Content div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Footer

Description

Footer to resize image in Content div

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit a</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
html, body {
   width:100%;
   height:100%;
   margin:0;
   padding:0;
}

#header {<!--   www  .  j  a v a  2s .  c  o m-->
   position:absolute;
   z-index:2;
   top:11px;
   left:11px;
}

#content {
   position:absolute;
   left:0;
   right:0;
   top:11px;
   bottom:21px;
   text-align:center;
}

#content img {
   height:97%;
}

#footer {
   position:absolute;
   bottom:0;
   left:11px;
   right:11px;
   text-align:left;
   height:21px;
   line-height:21px;
}
</style> 
 </head> 
 <body> 
  <div id="header">
    Lorem ipsum dolor sit a 
  </div> 
  <div id="content"> 
   <a href="#" title=""> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" alt="ups..."> </a> 
  </div> 
  <div id="footer">
    Lorem ipsum dolor sit amet 
  </div>  
 </body>
</html>

Related Tutorials