css - Prevent chrome cutting off background images on body when using background-position -
i have background image of paper airplane on body tag of page: http://cogo.goodfolk.co.nz. tip of being cut off - if resize browser window full image pops in.
it's happening in chrome, , isn't consistent, if refresh sometimes, or hover on it's fine. if remove background styles (background position , no-repeat) whole image there - of course isn't positioned correctly. it's happening on other pages of website (eg http://cogo.goodfolk.co.nz/online-surveying).
after days of debugging/searching can't find refers issue and/or fixes - possibly chrome bug background-position?
any ideas or workarounds? thank you!
//edited// relevant code pasted below, although pretty standard must else in site that's causing problem:
.home { background: url("../img/airplane.jpg") no-repeat center; background-size: 70%; background-position: 10% 98%; }
the background image set center
, expected behaviour, depending on window size. change css declaration from:
.home { background: url("../img/airplane.jpg") no-repeat center; background-size: 70%; }
to:
.home { background: url("../img/airplane.jpg") no-repeat center top; background-size: 70%; }
this anchor image top of screen, meaning not clip, may not behaviour looking for.
to complicate matters, have this, contributing problem. suggest removing entirely:
@media (min-width: 1200px) .home { background-position: 20% -10%; }
Comments
Post a Comment