Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


development:css:cent_bg

Differences

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

Link to this comparison view

development:css:cent_bg [2017/12/12 10:01] (current)
tplecko created
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: 2017/12/12 10:01 by tplecko