Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backround Colour on Layer doesnt show

Status
Not open for further replies.

zzman0

Technical User
May 12, 2008
3
US
Hello everyone,

I am new to web design and the like and am using dreamweaver to make my home page. Now I have done it in layers but when I press F12 to see what I got the backround colour of my layers are not showing up.

The writing in the layers do show up but against the backround of the general page and not the backround of the layer itself.

Can anyone help me with this?

thanks


 
Well we could try, but we'll need either your code, or at least a place where we can see your site.

Are you using images for the backgrounds, or are you setting actual colors? If colors, how are you setting them?

We need more information to help you.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
hello again,

sorry I guess you can tell how new I am at this, my site isn't
uploaded yet, but I can paste the code if that helps. My backround are colours and I basically placed the hexadecimal number for them in the design layout where it asks for it in the layers.

Here is the code for the site: I can get you a url soon just after I figure out my ftp info to upload it.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #DDDDDD;
}
.versaVestors {
font-family: "Palatino Linotype";
font-size: 44px;
color: #EEEEEE;
}
.slogan {
font-family: "Palatino Linotype";
font-size: 33px;
color: #EEEEEE;
}
.style1 {color: #EEEEEE}
-->
</style>
<script language="JavaScript" type="text/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>
</head>

<body>
<div id="Layer1" style="position:absolute; left:20%; top:47px; width:800px; height:190px; z-index:4; background-color: 003964; layer-background-color: 003964; border: 1px none #000000;">
<p align="center"><em><strong><span class="versaVestors">Versa Vestors</span></strong></em></p>
<p>&nbsp;</p>
<p align="center"><em><strong><span class="slogan">&quot;Investing with Versatility!&quot;</span></strong></em></p>
</div>
<div id="Layer2" style="position:absolute; left:20%; top:237px; width:800px; height:1550px; z-index:2; background-color: 336699; layer-background-color: 336699; border: 1px none #000000;">
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="119" border="1">
<tr>
<td height="32"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="movie" value="button1.swf">
<param name="quality" value="high">
<embed src="button1.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="movie" value="button2.swf">
<param name="quality" value="high">
<embed src="button2.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="BGCOLOR" value="">
<param name="movie" value="button3.swf">
<param name="quality" value="high">
<embed src="button3.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="movie" value="button4.swf">
<param name="quality" value="high">
<embed src="button4.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="movie" value="button5.swf">
<param name="quality" value="high">
<embed src="button5.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="movie" value="button6.swf">
<param name="quality" value="high">
<embed src="button6.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="movie" value="button7.swf">
<param name="quality" value="high">
<embed src="button7.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
<tr>
<td height="25"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="105" height="21">
<param name="movie" value="button8.swf">
<param name="quality" value="high">
<embed src="button8.swf" quality="high" pluginspage=" type="application/x-shockwave-flash" width="105" height="21" ></embed>
</object></td>
</tr>
</table>
<p>&nbsp;</p>
</div>
<div id="Layer3" style="position:absolute; left:410px; top:306px; width:527px; height:1236px; z-index:3">
<p class="slogan">Investement test page:</p>
<p class="slogan">&nbsp;</p>
<p class="slogan">&nbsp; </p>
</div>
</body>
</html>
 
The first colors I see are all basically white.
#EEEEEE.

The other colors I see you are using are missing the "#" before them. They hexadecimal numbers require the "#" symbol.
So This
Code:
<div id="Layer1" style="position:absolute; left:20%; top:47px; width:800px; height:190px; z-index:4; background-color:[red]><[/red]003964; border: 1px none #000000;">

should look like this:

Code:
<div id="Layer1" style="position:absolute; left:20%; top:47px; width:800px; height:190px; z-index:4; background-color:[red]#[/red]003964; border: 1px none #000000;">

Also you can remove the layer-background-color property as that was only for Netscape and is now unnecessary.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks so much,

You really know your stuff thats amazing how you caught that. I've been trying to solve this for a week now, I put the number sign in and it worked. Can't believe I missed that out.

thanks again,

 
Glad I could help.


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top