Click here to Skip to main content
15,396,540 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
the image banner.jpg is available but still not suggesting in vs code
and isn't appearing on web page

What I have tried:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Barber Shop</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }
        #banner{
            background: url(images/banner.jpg);
        }
    </style>
</head>

<body>
    <section id="banner">

    </section>
</body>

</html>
Posted
Updated 3-Jun-21 3:50am

1 solution

Rather odd CSS to define you image but here's one glaring mistake:

background: url(images/banner.jpg);

It should be
background: url("images/banner.jpg");


   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900