php - background picture alignment -


my background picture alignment seem not right. bottom part seems cut off. how background picture align middle.

body { background-image: url('<?php echo $backgroundpic;?>'); background-repeat:no-repeat; background-position:center; background-attachment:fixed; width: 100%; height: 100%; } 

enter image description here

enter image description here

all need add background-size , set cover

    body { background-image: url('http://i.stack.imgur.com/ewfou.jpg'); background-repeat:no-repeat; background-position:center;     background-size:cover;//answer background-attachment:fixed; width: 100%; height: 100%; } 

hope you.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -