My webpage displays a background image and text on the footer, which works perfectly for desktop users. However, mobile users are experiencing issues with the image not resizing to fit their screen size.
Below is my CSS code:
body {
margin-top: 50px;
margin-bottom: 50px;
background: none;
}
.full {
background: url('../1_v3.png') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size:cover;
}
.navbar-header {
float: left;
padding: 15px;
text-align: center;
width: 100%;
}
.navbar-brand {float:none;}
And here is the HTML file:
<!DOCTYPE html>
<html class="full" lang="en">
<!-- Rest of the HTML code -->
Is there a CSS trick to automatically resize the background image based on the user's device screen size?
P/s : The image has a resolution of 2536x1420 pixels.