Forum Moderators: open

Message Too Old, No Replies

Table Area incorrect

<TABLE> Question (prolly easy)

         

RichDiaz

1:28 am on Nov 8, 2001 (gmt 0)



here's the code

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC="./image/spacer_brown.gif" border=0 WIDTH=565 HEIGHT=2>
</TD>
</TABLE>

I'm just using this to create a LINE accross the screen. Graphically the image shows correctly 565x2 pixles HOWEVER I can't click the images behind it. It covers an area about 565x20 pixels... it's too tall! Is there anyway to force the height to 3 pixels ?

Thanks!
Rich
IN IE 5.5

mivox

1:34 am on Nov 8, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



add height="3" to your <table> tag... if that doesn't work, try adding height="3" to your <td> tag also.

RichDiaz

2:12 am on Nov 8, 2001 (gmt 0)



agh, that didn't work =P

tedster

4:46 am on Nov 8, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Would it work to just drop the table and just use the image tag? From the code snippet I see here, it looks like there's no need for a table.

tilt

5:58 am on Nov 8, 2001 (gmt 0)

10+ Year Member



You left out the <tr> tag. (Unless you just left it out for brevity here as part of the discussion)

toadhall

6:14 am on Nov 8, 2001 (gmt 0)

10+ Year Member



Rich,
Put a break tag after the image tag. Don't ask me why this works; it's just one of those things.

RichDiaz

5:53 pm on Nov 8, 2001 (gmt 0)



toadhall that's it =)

man how did you EVER figure that out?

Here's the final answer:

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TD VALIGN=TOP ALIGN=LEFT><IMG SRC="./image/spacer_brown.gif" border=0 WIDTH=565 HEIGHT=2>
</TD><br>
</TABLE>

idiotgirl

2:41 am on Nov 10, 2001 (gmt 0)

10+ Year Member Top Contributors Of The Month



I know if you're using something like FrontPage to comp our your tables you sometimes end up with a lot of real estate between your tags, which creates this exact problem.

<table border=0 cellspacing=0 cellpadding=0 height=2>
<tr><td><img src="brown.gif" border=0 height=2 width=565></td>
</tr></table>

It's eliminating the space between tags and the hard line breaks (no space between) that helps keep things ship-shape. I've puzzled over code forever only to look and see some unexplained gap between table tags, especially closing </td>'s - changed it - and solved the problem.

tedster

6:54 am on Nov 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry to rain on the parade here, but I would definitely not suggest using such non-standard HTML, even if it looks good on your browser. Using non-validating code is asking for trouble on some browser, some spider, somewhere, someday. And you may never know how much it's hurting you.

Marshall

7:50 am on Nov 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Forgive me if this seems obvious, but Rich, if you copied the code exactly, aren't you missing <tr> and </tr> tags?
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr><TD VALIGN=TOP ALIGN=LEFT><IMG SRC="./image/spacer_brown.gif" border=0 WIDTH=565 HEIGHT=2>
</TD>
</tr>
</TABLE>