development:css:cent_bg

Differences

This shows you the differences between two versions of the page.


development:css:cent_bg [2019/10/31 09:04] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== Centering background image with CSS ======
 +Just add style to HTML
 +<code css>
 +html { 
 +width:100%; 
 +height:100%; 
 +background:url(logo.png) center center no-repeat;
 +}
 +</code>
 +
  
  • development/css/cent_bg.txt
  • Last modified: 2019/10/31 09:04
  • by 127.0.0.1