katie_lostsoul
07-10-2007, 01:56 AM
Hello,
I have a div set to a transparency so the background image can show through. It's all great except I don't want the header to have this transparency applied to it. So I tried making another div called "trans" and put it under the header and applied the same transparency to it, however it stopped working.
Here's my code right now: (html)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style_index.css" />
<script language="JavaScript">
//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr. (script@esolutiononline.com)
//Modified by Dynamic Drive for NS6/Opera6 compatibility and code streamlining March 4th, 2002
//Visit http://www.dynamicdrive.com for this script
var keepstatic=0 //specify whether menu should stay static 0=non static (works only in IE4+)
var menucolor="#000000" //specify menu color
var submenuwidth=150 //specify sub menus' color
</script>
<title>Katie's Tomb Raider Screenshot Webpage -- The best Tomb Raider screenshots on the web!</title>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<noscript><font color="#FFFFFF">You need JavaScript enabled to view this menu, please activate it now.</font></noscript>
</head>
<body>
<div align="center">
<p>
<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menucontext.js"></script>
<script language="JavaScript">
showToolbar();
</script>
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script>
<div id="wrap">
<div id="header"><br />
</div>
<img src="images/header.jpg" width="790" alt="" />
<!-- RIGHT SIDE STUFF -->
<div id="extras">
<h3> <br /><br />
More Info:</h3>
<p> consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud</p>
<h3>Links:</h3>
<p><a href="#">Link 1</a><br />
<a href="#">Link 2</a><br />
<a href="#">Link 3</a><br />
</p>
</div>
<!-- CONTENT HERE -->
<div id="content"><br />
<h2>News/Updates:</h2>
<p>- July 9th: Text goes here, text goes here. asdfdsf asdfasdf </p>
<p>- July 3rd: Text goes here, text goes here.a dfadsfad</p>
<p>- July 12th: Text goes here, text goes here.</p>
<p>- July 23rd: Text goes here, text goes here. asdf asdfd</p>
<p> </p>
</div>
<div id="footer">
Copyright © 2007 (your name). Design by kty <a href="#">studio-plume.org</a>
</div>
</div>
<br />
</body>
</html>
And my CSS that I use for the transparency:
filter:alpha(opacity=80);
How can I have this so the header is not affected? Only the body? Thanks
I have a div set to a transparency so the background image can show through. It's all great except I don't want the header to have this transparency applied to it. So I tried making another div called "trans" and put it under the header and applied the same transparency to it, however it stopped working.
Here's my code right now: (html)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style_index.css" />
<script language="JavaScript">
//Top Nav Bar I v2.1- By Constantin Kuznetsov Jr. (script@esolutiononline.com)
//Modified by Dynamic Drive for NS6/Opera6 compatibility and code streamlining March 4th, 2002
//Visit http://www.dynamicdrive.com for this script
var keepstatic=0 //specify whether menu should stay static 0=non static (works only in IE4+)
var menucolor="#000000" //specify menu color
var submenuwidth=150 //specify sub menus' color
</script>
<title>Katie's Tomb Raider Screenshot Webpage -- The best Tomb Raider screenshots on the web!</title>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<noscript><font color="#FFFFFF">You need JavaScript enabled to view this menu, please activate it now.</font></noscript>
</head>
<body>
<div align="center">
<p>
<script language="JavaScript" src="menu.js"></script>
<script language="JavaScript" src="menucontext.js"></script>
<script language="JavaScript">
showToolbar();
</script>
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script>
<div id="wrap">
<div id="header"><br />
</div>
<img src="images/header.jpg" width="790" alt="" />
<!-- RIGHT SIDE STUFF -->
<div id="extras">
<h3> <br /><br />
More Info:</h3>
<p> consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud</p>
<h3>Links:</h3>
<p><a href="#">Link 1</a><br />
<a href="#">Link 2</a><br />
<a href="#">Link 3</a><br />
</p>
</div>
<!-- CONTENT HERE -->
<div id="content"><br />
<h2>News/Updates:</h2>
<p>- July 9th: Text goes here, text goes here. asdfdsf asdfasdf </p>
<p>- July 3rd: Text goes here, text goes here.a dfadsfad</p>
<p>- July 12th: Text goes here, text goes here.</p>
<p>- July 23rd: Text goes here, text goes here. asdf asdfd</p>
<p> </p>
</div>
<div id="footer">
Copyright © 2007 (your name). Design by kty <a href="#">studio-plume.org</a>
</div>
</div>
<br />
</body>
</html>
And my CSS that I use for the transparency:
filter:alpha(opacity=80);
How can I have this so the header is not affected? Only the body? Thanks