My background image gets blurry on a mobile device. 1920x 1392 300 resolution.
body { background-image: url(assets/img/home/yellowpeel2.png);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-color: #000;
}
https://angelahunte.com/index.html
Misty
2121
html body {
background-size: auto;
}
It's likely that will prevent the image from filling the background, but it should prevent it from scaling to fit, so you'll at least know if it's a scale issue.
<style>
body{
background-image: url("assets/img/events/yell500.png")
}
.con{
height:150px;
}
.med{
margin-bottom:10px;
}
.hero-image{
background-image: url("assets/img/contact/bus.png");
background-color: #fff;
height: 515px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
Could the hero-image have anything to do with this?
body{
background-image: url("assets/img/biography/yell500.png");
background-size: cover;
width:100%;
height:100%;
}
This Is Angela Page@media only screen and (max-width : 767px ) {
body {
background-attachment: initial;
}
body:before {
content: "";
display: block;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: url(assets/img/home/yell100.png) !important;
background-size: cover;
background-position: center center;
}
}
Looks fine to me. Checked it in mobile view on Firefox and Chrome, as well as on an actual mobile.
However, I would strongly suggest that you optimise that background image - it's relatively huge - 6.5mb for a background image is massive, and on a mobile, probably won't even load fully - and that's likely why you're seeing it blurry - it's only partialy downloading, so you never get the full res.
I'm sure you can get that down to less than a 1mb without losing any quality - check out some of the online PNG compression utilties, or consider a lossy format such as jpg. You might even want to consider using webp format for your images.