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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table color not showing in Netscape

Status
Not open for further replies.

terror

Programmer
Joined
Aug 22, 2001
Messages
86
Location
US
Hi all,
I have Netscape 4.7.
I make a table and give it a background color. the color shows up in IE but not in Netscape. What's up with that? Is this some obvious thing I'm missing?
 
In addition to this, if I make the same table in frontpage, with the same bkg color. It DOES show in Netscape. Am I missing some setting in Dreamweaver?
 
This is the code for a blank table in dreamweaver. The table bkg color shows in IE but not in Netscape

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;>

<table width=&quot;520&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bgcolor=&quot;#999999&quot;>
<tr>
<td width=&quot;520&quot; height=&quot;336&quot;></td>
</tr>
</table>
</body>

Its basic code.
 
If you leave the cel of the table empty the background color d'not appere
however when you type a space (with teh spacebar) the collo wil appear in netschape
my englisch is bad but i hope this helps you
just give a try
 
Brio,
how do I type a space in a table. I can only make a space if I have a cell in the table. Maybe I do not understand. I tried it and it did not work. Can you give me More Help?
(Your english is fine for me)
 
Hey terror,

Brio is right. You will need to use a non-breaking space however since there are no letters in front to allow for a normal space. This can be accomplished in Dreamweaver by simply using Ctrl Shift Spacebar or by finding the insert nonbreaking space button within your objects pallete.



Just in case this is unclear, The code should look like this:

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;>

<table width=&quot;520&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bgcolor=&quot;#999999&quot;>
<tr>

<td width=&quot;520&quot; height=&quot;336&quot;>&nbsp;</td>
</tr>
</table>
</body>

Another option would be to place a spacer image (usually a one by one pixel transparent gif) inside your table and change the size within Dreamweaver to match your table (not always necessary, but cleaner: you could leave it one by one pixel in most cases).

This technique is neccesary when using very small table cells within tables. (smaller than the room a nonbreaking space requires)

Let me know if this helps.
 
Correction:

<body bgcolor=&quot;#FFFFFF&quot; text=&quot;#000000&quot;>

<table width=&quot;520&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; bgcolor=&quot;#999999&quot;>
<tr>

<td width=&quot;520&quot; height=&quot;336&quot;>&nbsp;</td>
</tr>
</table>
</body>
 
Hey terror.

Sorry about that;the sybmol for a non-breaking space is not pasting in properly. Follow the directions for inserting one however, and you should be okay.

&nbsp
Tim
 
thankyou Tjaron, it was driving me crazy and I'm new to all this.
Much obliged! :)
 
Hi all!

Brio and TJARON are absolutely write!
The only thing to say:
to use non-breaking symbol (and others as well) in your posts change & sign to &amp; and you'll have
&nbsp; (you should write &amp;nbsp;)

Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top