deadlock Message Board
[ August Full List | Reply ]

Including A Border
From MacMatŠ on 5 Sept '99
replying to Re: Works For Me posted by Jay Browne

I see what you mean. It looks like Netscape works a bit weird in that respect. I think the nested elements should take priority, because they are more specific. This is generally the case for most things, but not for this I guess.

However, although not as nice looking, you may wish to do a workaround of the problem by specifying a border of 1 on the main table, along with a bordercolor attribute set to "black". If this looks satisfactory to you, it may be a good option worth considering.

Here is an example of what I mean:

<HTML>

<BODY BGCOLOR="white">

<TABLE BORDER=1 BORDERCOLOR="black" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD BACKGROUND="image.jpg">

<TABLE BORDER=0 CELLPADDING=10 CELLSPACING=10>
<TR>
<TD BACKGROUND="">This is a cell using the parent cell's background image. Because of using the td background="" attribute here, it works the same in both Navigator and IE. There is no retiling of the image in each new nested cell.
<P>
Keep in mind however, that of course the parent cell's image will always tile if the image is not large enough to cover the area of all nested cells within and it's own total area. But this is different than a retiling of the same image over again starting at each new cell (overlapping on top of the parent cell's background image). If you remove the td background="" attribute here, that's what will happen under Navigator 4. It will have no effective change under IE however.
</TD>
<TD VALIGN="TOP" BACKGROUND="">Here is another cell allowing the parent cell's background image to show through, without causing the same image to retile in this particular cell.
</TD>
</TR>
</TABLE>

</TD>
</TR>
</TABLE>

</BODY>

</HTML>




Reply to this message

Required Details
Your name:
Subject:

Optional Details
Home page title:
Home page URL:
Email:
(if you'd like to receive
automatic replies by email)

Your Message