View Full Version : BGCOLOR gone in NS??
G E C K O 5
03-26-2003, 03:48 AM
Hi All
http://atouchofjoy.com
Why is it that in NS, my cell bgcolors are dissapearing?
Is there a solution to this?
Any info would be greatly appreciated.
:thumbsup:
pardicity3
03-26-2003, 05:43 AM
It appears that you are forgetting the pound (#) sign before some of your hex values. Here is an example (this was at line 56 of your code):
<td height="100%" colspan=8 rowspan=8 valign="top" bgcolor="DBC788"> </td>
The number I bolded should appear this way #DBC788. Hope this helps.
G E C K O 5
03-26-2003, 10:46 AM
Thanks for the info (My Bad...).
However that did not resolve the problem with netscape.
Anyone else with a suggestion.
liorean
03-26-2003, 10:53 AM
From [HTML4]:
This attribute has been deprecated in favor of style sheets for specifying background color information.
So, specify style="background-color: [css colorvalue];" on the td. And see if that works instead.
Borgtex
03-26-2003, 03:06 PM
Empty cells in NS (NS4, at least) didn't show bgcolor; you have to add a 1x1 image or a or use styles
G E C K O 5
03-27-2003, 12:51 AM
Hi Borgtex,
I took your suggestion, applied CSS to the cells for backgroung, however i am still getting the same results.
In or around line 51, i applied a class to this cell, instead of assigning it a background color. I am still getting the same results though in NS.
Any other suggestions? I can't understand why this is giving me such a hard time?
Cheers
liorean
03-27-2003, 01:00 AM
Enter &nbsp; or <br /> in the cell - that should do it.
G E C K O 5
03-27-2003, 03:06 AM
Hi There,
<TD COLSPAN=4 class="maincontent"> </TD>
I do have a inserted on line 51, yet i am still missing the background on this cell when viewed in NS.
Woooooaaaaahhhhh, why is this not working!!!!
Roy Sinclair
03-27-2003, 03:03 PM
Originally posted by G E C K O 5
Hi There,
<TD COLSPAN=4 class="maincontent"> </TD>
I do have a inserted on line 51, yet i am still missing the background on this cell when viewed in NS.
Woooooaaaaahhhhh, why is this not working!!!!
Cause it's Netscape 4. If the page degrades gracefully and can still provide the basic information there's no reason to make it look picture perfect for every ancient browser out there.
That is weird. It may be because the cell spans rows and columns?
Anyway, I created a 32x32 gif with the same color as the background and used
<TD background="images/bgcolor1.gif"> and it worked in NS4?
Why the bgimage works and the bgcolor doesn't.. who knows but it may be a viable solution to your problem.
G E C K O 5
03-28-2003, 01:06 AM
Not Really has the two main cells with bkground colors are editable content areas.
Roy, you obviously do not taking programming very seriously or do not care who your audience is with such a view. Nor have you taken a look at the page in NS. It is anything but presentable in it's current state with the missing bkground colors.
I have reasearched this a bit more. From what i have gathered, because the whole table that houses the actual page resides in a single cell, with a bkground image applied to it, matching the general backgroung image for the canvass.. It says that it will default to the main background or something to that effect. I am going to remove the background on the main cell and see if that makes a difference.
I will post my results.
Regards.
G E C K O 5
03-28-2003, 01:39 AM
Well that did it!!!
However now I have lost all background images for not only the cell that i had selected but for the other two as well (On the left and right of the centre cell)......
Now isn't this a pickle!!!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.