I have a background image with a cup of coffee (say a circle) in the center but the cup has a 100px offset toward bottom. So I want to move background about 100px toward top where background covers the whole page. But when I move the background, a white space appears from bottom. I have read this Q/A but this says nothing about this white space:
My current solution (I use 200px offset to magnify the issue):
html,body{
height:100%
}
body{
background-image:url('https://p300-americantownscom.netdna-ssl.com/img/article/ks-coffee-shops-1.jpg');
background-repeat:no-repeat;
background-size:cover;
background-position:50% calc(50% - 200px);
}
Edit: without using calc
and with pure percentage e.g. background-position:50% 60%
, every thing works fine in Chrome. I have to overcome the problem of calc