Re: What's wrong with this code?
- From: "Jeff Castaldo" <j.castaldo@xxxxxxxxxxx>
- Date: Tue, 18 Mar 2008 01:22:12 GMT
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
.
- Follow-Ups:
- Re: What's wrong with this code?
- From: Jonathan N. Little
- Re: What's wrong with this code?
- References:
- What's wrong with this code?
- From: Jeff Castaldo
- Re: What's wrong with this code?
- From: dorayme
- What's wrong with this code?
- Prev by Date: Re: More help with PHP menus? 2nd level ideas. (OT to some).
- Next by Date: Re: Ugliest site ever competition ( was Re: Easter)
- Previous by thread: Re: What's wrong with this code?
- Next by thread: Re: What's wrong with this code?
- Index(es):
Relevant Pages
|
Loading