CSS Positioning with browser resizing - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

CSS Positioning with browser resizing

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%;
}

img {<!--from   w ww.  ja  v  a 2  s  .  c o m-->
   height:31%;
}
</style> 
 </head> 
 <body> 
  <img src="https://www.java2s.com/style/demo/Google-Chrome.png">  
 </body>
</html>

Related Tutorials