Make element Absolute positioned and fill parent height - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Absolute Position

Description

Make element Absolute positioned and fill parent height

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">
header {<!--from   w  w w.  j a v a  2 s.c  om-->
   color:Chartreuse;
   background:yellow;
   padding:9px;
   box-shadow:inset -11px 0 0 red,
   inset -21px 0 0 green;
}
</style> 
 </head> 
 <body> 
  <header> 
   <h1>Lorem Ipsum</h1> 
   <h2>Dolor Sit amet</h2> 
  </header>  
 </body>
</html>

Related Tutorials