xKevinFPx
xKevinFPx
KPCKevin Powell - Community
Created by xKevinFPx on 8/6/2023 in #front-end
Html Image help
why does this show nothing?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>

<style>
#container {
height: 500px;
width: 500px;
background-color: darkcyan;
}

#image {
background-image: url("https://wallpapercave.com/wp/wp2599594.jpg");
}
</style>

</head>
<body>
<div id="conatiner">
<div id="image"></div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>

<style>
#container {
height: 500px;
width: 500px;
background-color: darkcyan;
}

#image {
background-image: url("https://wallpapercave.com/wp/wp2599594.jpg");
}
</style>

</head>
<body>
<div id="conatiner">
<div id="image"></div>
</div>
</body>
</html>
67 replies