[thelist] Accessing table cell properties with CSS?

Tom Dell'Aringa pixelmech at yahoo.com
Thu Jun 27 16:53:01 CDT 2002


Jon, those are good ideas, I'll look into those. I'm rewriting
conditional content based on a clicked link. The page that changes is
in a separate frame from the one where the links need to change.

I could add even more frames to the architecture (shudder) which
would probably break lots of stuff which would need to be fixed. I
tried an iframe but had lots of problems (figured just rewrite the
iframe source). So at this point I am stuck with innerHTML....

--- Jonathan_A_McPherson at rl.gov wrote:
>
> Ideas:
>
> -- one --
> Since you are already sinning, you may as well try the Invisible
> GIF trick:
>
> Obtain a 1x1 transparent GIF.
>
> Put it in the blah cell --
> <img src="1pxtransparent.gif" alt="" width="298" height="1">
>
> Ta-da. IE will not shrink your cell. Now make it a width="1%" cell,
> and it
> won't grow the cell either.
>
> This is a dirty trick.
>
> -- two --
> Are you sticking a width on the "blah" cell at all? e.g.
>
> <td id="blah" width="298">
>
> If not, you ought to do so. (You might also use the CSS width
> property --
> style="width: 298px;")
>
> -- three --
> What are you trying to achieve that _requires_ the use of
> innerHTML? Maybe
> you _do_ have a choice. (-:
>
> --
> Jonathan McPherson, LMIT/SD&I
> Software Engineer & Web Systems Analyst
> email / jonathan_a_mcpherson at rl dot gov
>
>
> -----Original Message-----
> From: Tom Dell'Aringa [mailto:pixelmech at yahoo.com]
> Sent: Thursday, June 27, 2002 1:38 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] Accessing table cell properties with CSS?
>
>
> Ok, this is going to sound really backward (and I think I am
> barking
> up the wrong tree) but - is there anyway to control the Width of a
> TD
> with CSS? I cannot seem to do it. You might ask why...
>
> I have a table row with 2 cells:
>
> +-------+-----------------------+
> + blah  +      links here       +
> +-------+-----------------------+
>
> I am being forced to rewrite the second cell "links here" section,
> using innerHTML - yes I know, ugly, brutal, not good - I have no
> choice. The "blah" cell is set to a width of 298, the other cell
> has
> no setting.
>
> When I rewrite the second cell with the new links - I completely
> lose
> the width of the "blah" cell - and I need it to stay at 298 or it
> blows the whole look.
>
> I figured maybe rewriting the TD width at the same time would solve
> the problem, but I can't seem to do it. Any help or suggestions...
>
> Tom
>
> =====
> var me = tom.pixelmech.webDeveloper();
> http://www.pixelmech.com/
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !


=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the thelist mailing list