html - Entire background image is not fitting on screen -


background

(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

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -