I'm currently working on a website that I want to make responsive. I have set up a div ID that is supposed to appear once the width of a mobile device reaches a certain point. Here is the CSS code:
#mobilenavbuttons1 {
max-width: 750px;
padding-top: 20%;
height:0;
background: url("../../../images/productcatalog.jpg") repeat-x 0 0 / 100% auto rgba(0, 0, 0, 0);
-o-background-size: cover;
-moz-background-size: cover;
-webkit-background-size:cover;
padding-bottom:3px;
margin-bottom:4px;
text-align: center;
color: #fff;
}
This button displays correctly in all browsers except for Safari. When I open the site in Safari, the area where the button should be is empty. I tried using the debug tool in Safari, but I couldn't see the image background being loaded when I checked the styles section.
I've searched through numerous articles and Stackoverflow posts looking for a solution, but nothing has worked so far. I experimented with different image formats (png, gif), tried using quotes around the image path, removing the quotes, separating the background size property into another line, but none of these attempts have fixed the issue. Any suggestions or thoughts on how to resolve this problem?