I have a CSS
background image, but when I resize by browser to go bigger the image moves to the left. How do I keep the image in the same place even when the browser resizes? My code (so far) is:
.home-top {
width: 100%;
background-image: url('../assets/images/home-2x.png');
background-repeat: no-repeat;
background-position: -75px -600px;
margin-bottom: 50px;
}
Any idea's?
I had this issue in the past,
here is an example from my project - LIVE DEMO
drag the editor splitter and watch the reaction of the output.
The trick is in the css: