I'm experiencing an issue with my website where the image looks great on desktop but appears zoomed in and terrible on mobile devices. How can I fix this problem?
Using the code snippet below does not seem to work:
background-size:cover;
The background image is applied to a div that has two classes:
.content{
color: white;
font-family: "Another Typewriter";
width:100%; height:1000px;
font-size: 300%;
padding-left: 15%;
padding-right: 15%;
padding-top: 10%;
text-align: center;
background-size: cover;
}
.parallax{
height: 100%;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
#xyz{background-image: url(URLtoimage);}
The structure of the div container is as follows:
<div id="xyz" class="parallax content">
<legend class="text-center content-headline">XYZ</legend>
Some text
</div>