Re: What's wrong with this code?



Actually, I've found that BOTH codes work perfectly in Firefox and Opera, so
it is definetly an IE6 problem. I do not have IE7 installed on this
machine, so I cannot test with it.

Now, does anyone have a coding "fix"?

Thanks very much.

Jeff


"dorayme" <doraymeRidThis@xxxxxxxxxxxxxxx> wrote in message
news:doraymeRidThis-E25605.12032118032008@xxxxxxxxxxxxxxxxxxxxxxxxxxx
In article <ReEDj.4450$i54.93@trnddc05>,
"Jeff Castaldo" <j.castaldo@xxxxxxxxxxx> wrote:

I'm going crazy over this "simple" code. Why will the top code work
exctly
as I want it to, and the lower code will not work at all, with or without
the _blank?

This works:
<a href="images/product_images/4870_lg.jpg" target="_blank" /><img
src="images/product_images/4870_t.jpg" /></a>

This doesn't:
<td><a href="images/product_images/4870_lg.jpg" /><img
src="images/product_images/4870_t.jpg" /></a></td>

The ONLY dfference between the code is that in one I am trying to make
the
link clickable inside a table cell. Is there something wrong with that?


That is not the only difference I see.

If you make them the same and go:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>
<html>
<head>
<title></title>
</head>
<body>
<p><a href="http://www.guardian.co.uk/sudoku";><img
src="pics/crimson.png" alt=""></a></p>
<table>
<tr>
<td><a href="http://www.guardian.co.uk/sudoku";><img
src="pics/crimson.png" alt=""></a></td>
</tr>
</table>
</body>
</html>

This should make the link clickable in the cell as with the one
not in a table cell.

Ditto:

if you add target="_blank" to them both. (Validation in this case
is another matter)

--
dorayme



.



Relevant Pages

  • Re: Empty space on the sides of a nested table (firefox 2.0)
    ... It only happens when viewed in firefox; opera and ie display as ... I should also mention that firefox displays ok if I remove the width ... I've found another reason that makes the parent cell stretch in ... image-containing div. ...
    (alt.html)
  • Re: Empty space on the sides of a nested table (firefox 2.0)
    ... It only happens when viewed in firefox; opera and ie display as ... I should also mention that firefox displays ok if I remove the width ... I would recommend specifying on the table dlPictures a width of 100%. ... It only happens in the fourth cell in the first ...
    (alt.html)
  • Re: JRTs special day
    ... That's in Firefox. ... Right, you have split the table row into 3 equal parts, one gif in the ... first cell is 118 pixels, gif is 62 wide, it fits ...
    (uk.people.silversurfers)
  • Re: Weirdest Internet Explorer issue Ive ever seen.
    ... As far as I can tell, the gist of it is that the third link calls the same function called by the first link followed by the same function called by the second link. ... In both IE7 and Firefox, another strange thing is that when the input field is created with width set to 100%, it slightly overlaps the right border of its containing table cell. ...
    (alt.html)
  • Re: text box appearing as image in some browsers
    ... Putting text in a VML text box will cause problems for FireFox as you said, but placing text in a table cell will be OK for all browsers. ... Anything you can configure for a text box can be configured for a table cell or using a little CSS or even the property sheets in FrontPage. ... Text boxes are produced using the Drawing toolbar in FrontPage, ... Firefox shows the text boxes as images that have in some cases ...
    (microsoft.public.frontpage.programming)

Loading