Aceramic
10-17-2007, 06:07 PM
Disclaimer: I am very new to CSS so far, so this may be obvious to some. :)
Apperently, I need some help... I've done this exact same thing before, I've compared my current code to the previous code, and I cannot figure out why it works in the previous one, but not this one...
Basically, what's happening is the opacity takes effect on the "container" (such as it is), and then (for some reason I can't figure out) continues to take effect in the next div tag, which contains the text. Complete code included below: (Note, I just started this, so it may still be a bit messy...)
<html>
<head>
<title>Cartennes Nations - Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,th {
color: #7B1113;
}
body {
background-color:#FFFFFF;
}
.background {
filter:alpha(opacity=80);
opacity:0.8;
background-color:#000000;
border:2px solid #FF9900;
width:80%;
height:100%;
position:absolute;
left:10px;
}
#content {
filter:alpha(opacity=100);
opacity:1.0;
font:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
font-color:#FFFFFF;
}
-->
</style></head>
<body>
<!-- Begin banner map -->
<p><img src="images/NavBanner1.png" alt="Banner Image" width="750" height="180" border="0" usemap="#Map" />
<map name="Map">
<area shape="poly" coords="96,151" href="#">
<area shape="poly" coords="97,152,153,152,138,173,81,173" href="index.html" target="_self">
<area shape="poly" coords="165,152,224,152,206,172,147,173" href="about.html" target="_self">
<area shape="poly" coords="235,152,292,152,275,173,217,174" href="contact.html" target="_self">
<area shape="poly" coords="304,152,362,152,345,173,286,172" href="rules.html" target="_self">
</map></p>
<!-- End banner map -->
<!-- Begin site content -->
<div class="background">
<div id="content">Welcome to Cartennes Nations!</div>
</div>
</body>
</html>
Yeah, I know... Hotspots aren't the greatest thing. But I don't know of another way to get the buttons to work. That's irrelevant anyways. ;)
Apperently, I need some help... I've done this exact same thing before, I've compared my current code to the previous code, and I cannot figure out why it works in the previous one, but not this one...
Basically, what's happening is the opacity takes effect on the "container" (such as it is), and then (for some reason I can't figure out) continues to take effect in the next div tag, which contains the text. Complete code included below: (Note, I just started this, so it may still be a bit messy...)
<html>
<head>
<title>Cartennes Nations - Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body,td,th {
color: #7B1113;
}
body {
background-color:#FFFFFF;
}
.background {
filter:alpha(opacity=80);
opacity:0.8;
background-color:#000000;
border:2px solid #FF9900;
width:80%;
height:100%;
position:absolute;
left:10px;
}
#content {
filter:alpha(opacity=100);
opacity:1.0;
font:Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
font-color:#FFFFFF;
}
-->
</style></head>
<body>
<!-- Begin banner map -->
<p><img src="images/NavBanner1.png" alt="Banner Image" width="750" height="180" border="0" usemap="#Map" />
<map name="Map">
<area shape="poly" coords="96,151" href="#">
<area shape="poly" coords="97,152,153,152,138,173,81,173" href="index.html" target="_self">
<area shape="poly" coords="165,152,224,152,206,172,147,173" href="about.html" target="_self">
<area shape="poly" coords="235,152,292,152,275,173,217,174" href="contact.html" target="_self">
<area shape="poly" coords="304,152,362,152,345,173,286,172" href="rules.html" target="_self">
</map></p>
<!-- End banner map -->
<!-- Begin site content -->
<div class="background">
<div id="content">Welcome to Cartennes Nations!</div>
</div>
</body>
</html>
Yeah, I know... Hotspots aren't the greatest thing. But I don't know of another way to get the buttons to work. That's irrelevant anyways. ;)