Check out my website at this link.
Below is a div I have created:
<div class="home" style="background-image: url(http://payload51.cargocollective.com/1/7/237315/3336908/HomeImage_o.jpg); background-attachment: fixed; height: 660px; width: 100%; opacity: 1; background-position-y: 0px; background-position-x: center; background-repeat: no-repeat no-repeat; background-size: 100%;">
</div>
Along with some corresponding CSS for that div:
div.home {
width: 100%;
margin-bottom: 30px;
min-width: 100%; height: auto;
}
However, despite the margin-bottom
, the brown menu and text below it seem to be experiencing issues:
- The distance from the image increases when the browser width is reduced.
- Both elements do not adjust responsively as the browser size decreases.
For reference, here is a JSFiddle link: here. Please excuse any errors as I am still learning how to use JSFiddle.