Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


development:css:cent_bg

Centering background image with CSS

Just add style to HTML

html { 
width:100%; 
height:100%; 
background:url(logo.png) center center no-repeat;
}

Discussion

Enter your comment:
Y U Y L᠎ A
 
development/css/cent_bg.txt · Last modified: 2019/10/31 09:04 (external edit)