Sitemap

Amicuk Programming Answers

Background color shows through table color in firefox

-0001-11-30   Views:0

Advertisement

Hello, I am new to Dreamweaver and i am using CS3 and doing the cafe townsend tutorial. I make the background color balck and the table color a brick red, but in firefox the background color is showing through the table color, but in safari it shows

Hello,
I am new to Dreamweaver and i am using CS3 and doing the cafe
townsend tutorial. I make the background color balck and the table
color a brick red, but in firefox the background color is showing
through the table color, but in safari it shows up okay. can anyone
help? i am on a mac.
code below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>Café Townsend</title>
<style type="text/css">
<!--
body {
background-color: #000000;
-->
</style>
<script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 &&
userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave
Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave
Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ?
descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] :
0;
flashVer = parseFloat(verMajor + "." + verMinor);
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1)
flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
</script>
</head>
<body onload="MM_CheckFlashVersion('9,0,28,0','Content on
this page requires a newer version of Adobe Flash Player. Do you
want to download it now?');">
<table width="700" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td height="90"><img
src="images/banner_graphic.jpg" alt="" name="banner_graphic"
width="700" height="92" id="banner_graphic"
style="background-color: #993300" /></td>
</tr>
<tr>
<td height="166" align="center"
valign="middle"><script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','700','height','150','src','flash_fma','quality','high','pluginspage','http://www.adob e.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash_fma'
); //end AC code
</script><noscript><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="700" height="150">
<param name="movie" value="flash_fma.swf" />
<param name="quality" value="high" />
<embed src="flash_fma.swf" quality="high" pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="700"
height="150"></embed>
</object></noscript></td>
</tr>
<tr>
<td height="24"><img
src="images/body_main_header.gif" width="700" height="25"
/></td>
</tr>
</table>
<table width="700" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="140" bgcolor="993300"> </td>
<td width="230" align="center" valign="top"
bgcolor="F7EEDF"><p>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','widt h','202','height','186','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_Co mponentVersion=1&skinName=Halo_Skin_2&streamName=cafe_townsend_home&autoPlay=false&autoRew ind=false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspag e','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash',' movie','FLVPlayer_Progressive'
); //end AC code
</script><noscript><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="202" height="186" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf"
/>
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars"
value="&MM_ComponentVersion=1&skinName=Halo_Skin_2&streamName=cafe_townsend_home&autoPlay =false&autoRewind=false"
/>
<embed src="FLVPlayer_Progressive.swf"
flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_2&streamName=cafe_townsend_home&auto Play=false&autoRewind=false"
quality="high" scale="noscale" width="202" height="186"
name="FLVPlayer" salign="LT" type="application/x-shockwave-flash"
pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
/>
</object></noscript>
</p>
<p><img
src="completed_files/images/street_sign.jpg" width="202"
height="136" /></p></td>
<td width="330" bgcolor="F7EEDF"> </td>
</tr>
</table>
<table width="700" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td height="24"><img
src="images/body_main_footer.gif" width="700" height="25"
/></td>
</tr>
</table>
</body>
</html>

The replay answer
Advertisement
On a quick look, I think it's a css specifity problem.
If you take the background color style out of the table and
create a style in the head of the doc
(like you did for the body), the color does show up.
You need to give the outer table an ID and create the
following style and add it just below the body
style
.maintable { background-color: #993300; }
So the top of your document looks like this:
<style type="text/css">
<!--
body {
background-color: #000000;
#maintable { background-color: #993300; }
-->
</style>
This is what the outertable line should look like:
<table id="maintable" width="700" border="0"
cellspacing="0" cellpadding="0">
PS: There also appears to be a syntax error with the flash
script, which may cause some issues, but
I can't help you with that sorry :-)
Nadia
Adobe® Community Expert : Dreamweaver
Unique CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
Book: Ultimate CSS Reference (aff link) |
http://www.sitepoint.com/launch/005dfd4/3/133
http://twitter.com/nadiap
"grafix89" <[email protected]> wrote in
message
news:[email protected]
> Hello,
>
> I am new to Dreamweaver and i am using CS3 and doing the
cafe townsend
> tutorial. I make the background color balck and the
table color a brick red,
> but in firefox the background color is showing through
the table color, but in
> safari it shows up okay. can anyone help? i am on a mac.
>
> code below
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
> <title>Caf? Townsend</title>
> <style type="text/css">
> <!--
> body {
> background-color: #000000;
> }
> -->
> </style>
> <script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
> <script type="text/javascript">
> function MM_CheckFlashVersion(reqVerStr,msg){
> with(navigator){
> var isIE = (appVersion.indexOf("MSIE") != -1 &&
> userAgent.indexOf("Opera") == -1);
> var isWin = (appVersion.toLowerCase().indexOf("win") !=
-1);
> if (!isIE || !isWin){
> var flashVer = -1;
> if (plugins && plugins.length > 0){
> var desc = plugins["Shockwave Flash"] ?
plugins["Shockwave
> Flash"].description : "";
> desc = plugins["Shockwave Flash 2.0"] ?
plugins["Shockwave Flash
> 2.0"].description : desc;
> if (desc == "") flashVer = -1;
> else{
> var descArr = desc.split(" ");
> var tempArrMajor = descArr[2].split(".");
> var verMajor = tempArrMajor[0];
> var tempArrMinor = (descArr[3] != "") ?
descArr[3].split("r") :
> descArr[4].split("r");
> var verMinor = (tempArrMinor[1] > 0) ?
tempArrMinor[1] : 0;
> flashVer = parseFloat(verMajor + "." + verMinor);
> }
> }
> // WebTV has Flash Player 4 or lower -- too low for
video
> else if (userAgent.toLowerCase().indexOf("webtv") != -1)
flashVer = 4.0;
>
> var verArr = reqVerStr.split(",");
> var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
>
> if (flashVer < reqVer){
> if (confirm(msg))
> window.location =
> "
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveF
> lash";
> }
> }
> }
> }
> </script>
> </head>
>
> <body
onload="MM_CheckFlashVersion('9,0,28,0','Content on this page
requires a
> newer version of Adobe Flash Player. Do you want to
download it now?');">
> <table width="700" border="0" cellspacing="0"
cellpadding="0">
> <tr>
> <td height="90"><img
src="images/banner_graphic.jpg" alt=""
> name="banner_graphic" width="700" height="92"
id="banner_graphic"
> style="background-color: #993300" /></td>
> </tr>
> <tr>
> <td height="166" align="center"
valign="middle"><script
> type="text/javascript">
> AC_FL_RunContent(
> 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>
version=9,0,28,0','width','700','height','150','src','flash_fma','quality','high
> ','pluginspage','
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Ve
> rsion=ShockwaveFlash','movie','flash_fma' ); //end AC
code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=9,0,28,0" width="700" height="150">
> <param name="movie" value="flash_fma.swf" />
> <param name="quality" value="high" />
> <embed src="flash_fma.swf" quality="high"
> pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
> n=ShockwaveFlash" type="application/x-shockwave-flash"
width="700"
> height="150"></embed>
> </object></noscript></td>
> </tr>
> <tr>
> <td height="24"><img
src="images/body_main_header.gif" width="700"
> height="25" /></td>
> </tr>
> </table>
> <table width="700" border="0" cellspacing="0"
cellpadding="0">
> <tr>
> <td width="140"
bgcolor="993300"> </td>
> <td width="230" align="center" valign="top"
bgcolor="F7EEDF"><p>
> <script type="text/javascript">
> AC_FL_RunContent(
> 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>
version=7,0,0,0','width','202','height','186','id','FLVPlayer','src','FLVPlayer_
>
Progressive','flashvars','&MM_ComponentVersion=1&skinName=Halo_Skin_2&streamName
>
=cafe_townsend_home&autoPlay=false&autoRewind=false','quality','high','scale','n
> oscale','name','FLVPlayer','salign','lt','pluginspage','
http://www.adobe.com/sho
>
ckwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_
> Progressive' ); //end AC code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=7,0,0,0" width="202" height="186"
id="FLVPlayer">
> <param name="movie" value="FLVPlayer_Progressive.swf"
/>
> <param name="salign" value="lt" />
> <param name="quality" value="high" />
> <param name="scale" value="noscale" />
> <param name="FlashVars"
>
value="&MM_ComponentVersion=1&skinName=Halo_Skin_2&streamName=cafe_townsend_home
> &autoPlay=false&autoRewind=false" />
> <embed src="FLVPlayer_Progressive.swf"
>
flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_2&streamName=cafe_townsend_
> home&autoPlay=false&autoRewind=false"
quality="high" scale="noscale"
> width="202" height="186" name="FLVPlayer" salign="LT"
> type="application/x-shockwave-flash"
> pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
> n=ShockwaveFlash" />
> </object></noscript>
> </p>
> <p><img
src="completed_files/images/street_sign.jpg" width="202"
> height="136" /></p></td>
> <td width="330"
bgcolor="F7EEDF"> </td>
> </tr>
> </table>
> <table width="700" border="0" cellspacing="0"
cellpadding="0">
> <tr>
> <td height="24"><img
src="images/body_main_footer.gif" width="700"
> height="25" /></td>
> </tr>
> </table>
> </body>
> </html>
>
>

Go to See the other 4 answers

No mean to obtain a correct background color under Firefox

Category:DefaultRelease time:-0001-11-30Views:130

On my web site (www.tregor.fr), I set a color #FFFFEE for the body background. Then I have a div tag (boite-niveau2) that contains the left menu and the text of the page; the background color is white (#FFFFFF) for boite-niveau2. Under IE, the backgr[More]

How do I change the tab background color in Firefox 4?

Category:DefaultRelease time:2015-10-11Views:130

I just upgraded to Firefox 4. Tabs are now fine black font on dark grey background -- very hard to read. How do I change the tab background color? I have searched and the closest I can come is some instructions for modifying .css files, and it is not[More]

Cell Background Color in Firefox

Category:DefaultRelease time:-0001-11-30Views:130

I can't seem to get the background color for a cell to work in FireFox. It works okay in IE. But doesn't show up in FireFox. http://www.tusker.com/3tuskerTrips_KilimanjaroClimb_Routes_10.cfm Here's the page. The problem I'm having is with the bar of[More]

Layer Background color not support on AP Element

Category:DefaultRelease time:-0001-11-30Views:130

Hi I am new to dreamweaver. I just started learning how to use it, and I can't figure out why when I am validating the browser, I kept on getting a message that the layer background color is not supported in the AP element. I looked at my code and it[More]

Background color shows through table color in firefox

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I am new to Dreamweaver and i am using CS3 and doing the cafe townsend tutorial. I make the background color balck and the table color a brick red, but in firefox the background color is showing through the table color, but in safari it shows[More]

Background color different in firefox and IE

Category:DefaultRelease time:-0001-11-30Views:130

I am using dreamweaver cs5 and when I test my page in firefox, it is the color that I chose ( a pink color), but when i test it in internet explorer, it is black (this is the background color).  Does anyone know why this is happening and how to corre[More]

Problem with cfdocument and background colors with table borders

Category:DefaultRelease time:2015-10-11Views:130

i am having a great deal of difficulty with cfdocument rendering my tables with cells that have background colors. the background colors seem to bleed through the table border. a picture at 100% magnification can be seen at http://www.vitad.com/cfdoc[More]

Custom Action to change selected column's Background color for a table in CEWP

Category:DefaultRelease time:2015-10-11Views:130

I have a OOTB CEWP. When I insert a table to this, I would like to see a context menu that would give me an option to change the selected cell's/row's/table's properties like cell padding/cell spacing/background color etc. How can this be achieved us[More]

How can I correct background color and graphics in Firefox?

Category:DefaultRelease time:2015-10-11Views:130

For some reason some background color images and fonts do not appear in Firefox. Other browsers are mostly fine. I've tried most common fixes to no avail. I'm running Windows 7 Ultimate. I've attached two screenshots. One is Firefox viewing Google. T[More]

Change the background color of a table created by ADDT (Login)

Category:DefaultRelease time:2015-10-11Views:130

I am trying to change the background color of a table in the login form created by the developer's toolbox. I then go and select the table and change the background color. But it has no effect. The only insight I have is when I delete this "" fr[More]

How do I change the background color of a row in a table indicator?

Category:DefaultRelease time:2015-10-11Views:130

Hello,   How do I change the background color of a row in a table indicator? I know how to change the background color in a active cell, but that is not what I want. My first intent is to make the background color of the first row a unique color, suc[More]

Hot
please helpBasic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.Read other 2 answers [More]
Hi I am installing P6 Contrcat manager application on WebLogic Server 11gR1 (10.3.3). While starting I am getting the Status as start failed with below error: HTTP:101216]Servlet: "StartupServlet" failed to preload on startup in Web application: [More]
I have an iTouch. I imported a cd with meditations on it into my computer. They all play just fine. I created a playlist on my iTouch, and put them into it. When I play the playlist on my iTouch - 3 of the 4 are in fast mode...I deleted the playlist, [More]
Hi Experts, I have a problem when running Webdynpro as test.  My input view is not editble though all of the input fields property is not read only and they are editable. Please advise, --Jamie.Hi Jamie, WebDynpro context behavior is different at run [More]
I was taking a video and accidentally exited the program. Is there a way to recover the video?To clarify I was using the photo booth on my macbook.Read other 2 answers [More]
I changed my 2 mail accounts to have different tones in the notifications in settings and now I can't change one tone to a different one or even turn it off completely.  Sounds in settings doesn't work either.  Does anyone know or have the same probl [More]
and removed it from the list there. Unfortunately it was the wrong iPhone and now I can't reboot the phone. In the display it says "call owner   my number" and I can start by choosing lanugage, country and WiFi. I can choose language, country an [More]
Hey, Is it possible to nest two tables?Suhas Saha wrote: > > What Yuri is suggesting is the old "Parallel Cursor" technique > > Imho nested LOOPs can be handled easily (& elegantly) using SORTED / HASHED tables. Read the SAP docu [More]
Greetings, I'm trying to segregate servers based on their location, because each location has the same hostnames. For example: Store 001: managerpc, register01, register02 Store 002: managerpc, register01, register02, register03 Store 750: managerpc, [More]
When I use Preview to view a PDF in Hebrew, I cannot search in Hebrew nor copy or paste instead I get gibberish. Is there a way to fix this?Do you have an example that someone could look at? I wouldn't be surprised if most PDFs you found were gibberi [More]