html - Entire background image is not fitting on screen -

(source:http://imgur.com/5pkaiea.)
hey basicly got 2 of files above 1 "header" , 1 "footer" both same size kinda flipped.
the problem width doesn't fit on page, ways other background-image: cover?
the file basicly 1280 px wide , around 114 px tall.
div #header { background-image:url(../img/webclient_header.png); height: 114px; width: initial; margin: 0; /* if want no margin */ padding: 0; /*if want padding */ }
in css can use property background-size resize image fit:
div #header { background-image:url(../img/webclient_header.png); background-size:800px 114px; /* choose size here w x h */ height: 114px; width: initial; margin: 0; /* if want no margin */ padding: 0; /*if want padding */ } update: checkout code update on jsfiddle http://jsfiddle.net/bkz8n/
Comments
Post a Comment