I have a background image for my web page called "fondo_campo1.jpg", the problem I have is when displaying the image in full size.
The image is repeated if the size is not greater than the size of the screen resolution. And if I put the property: background-repeat:no-repeat; the missing part is blank.
What should I do?
body{
background-image: url("https://andro4all.com/files/2017/07/fondos-miui-9-700x618.jpg");
}
<!DOCTYPE html>
<html lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Reservar</title>
<link rel="stylesheet" href="css/estilos_reservar.css">
</head>
<body>
//...
</body>
</html>
Try to define the body in the CSS in this way
background-attachment makes the background image not go away with the scroll of the page.
The rest of the properties are specific to each browser, which does not cause problems or more common properties and that is why I will not explain what they do
You can use:
EITHER
background-size: cover;
EDIT: This way you get what you want:
background-size: 100% 100%
;