While trying to set the background color of a div to light blue #2390bb
, I encountered an issue. Even though I have already set the body background color to Light Grey#D6D6D6
, the light blue color doesn't display in the div. Can anyone help me figure out why this is happening? Thank you in advance for any assistance. Here is the code snippet:
HTML;
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<style>
body {
background-color: #D6D6D6;
}
</style>
</head>
<body>
<!--TOP COLOR BG-->
<div id="bg-top"></div>
</body>
</html>
CSS;
#bg-top {
background-color: #2390bb;
}
Here's an example of what I am aiming for: