I'm facing an issue where my image, despite being set to 100% opacity, appears partially transparent and shows the banner and background image behind it. How can I resolve this problem?
Below is the snippet from my style sheet:
#banner{
width:1280px;
height:80px;
line-height:100px;
background-color:#a8a8a8;
text-align:center;
font-size:40px;
color:#00FF00;
}
#content{
width:100%;
font-family:comic;
font-size:14px;
padding:10%;
margin:auto;
margin-top:200px;
}
#greeting{
margin-top:-275px;
margin-left:640px;
font-size:25px;
}
#graphic{
margin-left:640px;
margin-bottom:-140px;
}
#banner{
width:1280px;
height:80px;
line-height:100px;
background-color:#a8a8a8;
text-align:center;
font-size:40px;
color:#00FF00;
opacity: 0.5;
filter: alpha(opacity=25);
margin-top: 20px;
}
#background{
margin-bottom:-860px;
opacity: 0.4;
filter: alpha(opacity=25);
}
This is the relevant section from my html file:
<!DOCTYPE html>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css" align="center">
</head>
<body>
<div id="graphic">
<img src="jmfiller2.png" height="150">
</div>
<div id="banner"></div>
<div id="greeting">
Hello! Welcome to my portfolio site!
</div>
<div id="content"></div>
<div id="background">
<img src="background5.JPG">
</div>
</body>
</html>