CSS background position 50% 50% - HTML CSS CSS Property

HTML CSS examples for CSS Property:background-position

Description

CSS background position 50% 50%

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">
body, html {
   width:100%;
   height:100%;
   margin:0;
}

body {<!--from   w  ww.  ja  v a  2s . c o  m-->
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   background-repeat:repeat;
   background-position:center center;
}
</style> 
 </head> 
 <body>  
 </body>
</html>

Related Tutorials