On 29/01/11 22:11, richard wrote:
> http://1littleworld.net/sample/indexa.html
>
> Problem is that when a second link is embedded inside the block, the
> desired effect of linking the entire block is changed so that only the text
> becomes a link.
>
> Now for you flamers, I know you will harass me over the fact that I use
> inches instead of pixels for the blocks. So flame away, I'm not gonna
> change it for you.
1) Fix your broken markup
http://validator.w3.org/check?verbos...%2Findexa.html
2) There is a fairly easy method of making some elements that can not
normally be wrapped in an anchor-link appear as if they were one. You
will need to check the DTD for XHTML 1.0 Strict to see if this method
can be applied in this case.
3) If you use the method referenced at (2) above to simulate anchor-link
operation on a block level element, and then include an anchor-link
inside that block level element, you can not guarantee which of the two
destinations will appear if you click on the anchor-link inside the
simulated-anchor-link block.
Rgds
Denis McMahon
p.s. I'll tell you what the method of doing (2) is after and only after
you have corrected the page so that it generates no errors, warnings or
information markers on the validator. If you can not do that, you do not
get told the answer.