scriptygoddess

15 May, 2002

Empty Cells in Netscape 6+

Posted by: Jennifer In: How to's

If you're using background colors or images in table cells, and you look at your page in netscape 6+, if one of your table cells doesn't actually have anything in it… (ie. one or more cells look like this)

<td></td>

Then nothing will show up in those cells: no background image. no background color.

CSS to the rescue!!

Put this in your stylesheet and all should be well:

table
{
empty-cells: show
}

6 Responses to "Empty Cells in Netscape 6+"

1 | Tobias

May 15th, 2002 at 9:31 am

Avatar

Doesn't work in Netsie 4.x, does it? (see here)

2 | Jennifer

May 15th, 2002 at 10:05 am

Avatar

Well, no, it doesnt… then again, thats true of most things that would make a web designer's job easier ;-P

That trick will only work with NS6 (doesn't have any affect on IE, which rendered it fine to begin with)

I'll update the post.

3 | kristine

May 15th, 2002 at 1:42 pm

Avatar

Wow, that's new to me! Cool, I'll have to try that!

The way I always have done it (don't remember where in my learning I got this!) is

<td>&nbsp;</td>

By putting something, even just a space, inside of an empty table cell (or a table cell with a background image to repeat), it lets it be shown in all the browsers. (I think)

4 | Jennifer

May 15th, 2002 at 1:47 pm

Avatar

Kristine, yes actually that's the best way to do it…

I had that little CSS trick from when I was working on a web application that actually WROTE the td cells… but it wasn't smart enough to write the non-breakin-space if there was no data for the cell…

5 | diona

December 20th, 2002 at 3:03 pm

Avatar

nice one! thanx.

6 | duncan williamson

July 25th, 2003 at 11:13 am

Avatar

I thought it was just me … I just cannot get the empty-cells code to work. I use Dreamweaver and Front Page and IE6 and the thig will not work whether I put it in in a *.css file or in the page coding itself.

Apart from   is there a correction or workaround for this?

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements