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

How To Display Empty Table Cells? 1

Status
Not open for further replies.

JavaStripped

Programmer
Dec 18, 2002
84
CA
...using CSS, of course.

Right now, I'm just putting a nbsp in the cell, but I'd like to make the cell completely empty, but still displayed in terms of borders and background, if this is possible. Not to be picky or anything...

[blush]
JavaStripped
"I did *not* escape. They gave me a day pass."
 
You could try setting a background image for it if you have to use css. Just put a transparent 1x1 gif in your class.

I don't see why that wouldn't work. Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Hey Ian
Did you actually read the original post? [wink] Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
I'm not sure if it is possible and i'm sure browsers will handle it differently anyway. Any particulat reason why you can't just stick a space in the cell??
you could try defining the size etc with CSS but it seems like a lot of work for nothing, IMHO :-
É ::
 
Thanks for all the help, everyone. Given my options, I'll probably just stick with the non-breaking space. Thanks to recent developments in the rest of the layout, it's no longer as big a nit-picky issue as it was.

Sometimes I just want to...

[machinegun] {CODE
[cannon] BLOCK} JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top