2
The image does not take the whole screen, I tried to put width
and height
, but continued the same way the image appears on the page.
HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
<title> Vidas Secas </title>
<link rel="shortcut icon" href="3.jpg">
</head>
<body>
</body>
</html>
CSS
body {
background-image: url(1.jpg);
background-repeat: no-repeat;
width: 100%;
height: 100%;
}
How large is the image? Since it is in CSS
no-repeat
? Width and height do not work with background– William Aparecido Brandino