How to put background image? [duplicate]

2

How do I put an image to the bottom of my site? It's not working.

HTML

<!DOCTYPE html>
<html>
    <head>
        <title> Praticando #1 </title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="estilos.css" />
    </head>
    <body>
         <div class="fundo1"> Café.com </div>
    </body>
</html>

CASCADE STYLE

body{
    background-image: url ("///F:/projeto/bistro.png");
    background-repeat: no-repeat;
}
    
asked by anonymous 26.05.2018 / 22:29

1 answer

1

Your CSS has a syntax error:

               espaço errado
                     ↓
background-image: url ("///F:/projeto/bistro.png");

The term url must be enclosed in parentheses:

background-image: url("///F:/projeto/bistro.png");
    
26.05.2018 / 23:02