html - Show specific part of background image -


i'm having little problem 1 of background images in div element. i'm using following css:

.mybox {  background-image:url('....');  background-repeat:no-repeat;  background-size:cover; } 

my background image picture people on it. now, if increase width of browser window, @ specific point, of people cutted off (due automatic resize of image 'background-size:cover').

my question is: there option (or jquery plugin), set specific part on background image visible on window sizes , fill whole element?

there variety of solutions try; however, might want start simple applying background-position.

https://developer.mozilla.org/en-us/docs/web/css/background-position

using background image of group of people example, might set background-position: top heads never cut off. can set vertical , horizontal position in pixel or percent units.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -