I am facing an issue where the background image on my website becomes enlarged as the screen size decreases. I have searched online for a solution but have been unsuccessful so far. I am working on a WordPress project using the Avada theme. You can view my site here.
My CSS :
.boost-din-uddannelser {
background: url('http://arslankhalid.com/manning/wp-content/uploads/2015/11/12345_051.png');
padding: 30px 22px;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
My HTML :
<div class="fusion-one-third one_third fusion-layout-column fusion-spacing-yes boost-din-uddannelser" style="margin-top:0px;margin-bottom:20px;"><div class="fusion-column-wrapper"><div class="last-text">
<h3 data-fontsize="28" data-lineheight="28">BOOST DIN<br>
VÆRKTØJSKASSE<br>
SOM COACH ELLER<br>
LEDER</h3>
<p class="mid">Med to nye aften workshops.Få ny viden og værktøjer til at bruge coaching i virksomheder og til at udvikle teams.</p>
<p><a class="med" href="#">Læs mere</a></p>
</div>
<div class="fusion-clearfix"></div></div></div>
On a larger screen, it appears like this https://i.sstatic.net/SPiqV.png
However, on a smaller screen, it looks like https://i.sstatic.net/N7t4Y.png