Posted by Jonathan N. Little on 07/08/06 12:35
Stefan Mueller wrote:
> Because in Internet Explorer I always have a small space after a HREF I use
> 'style = "display:block"'
> <a href = "mailto:info@test.com" style = "display:block">info@test.com</a>
> That works fine.
>
> However if I select the HREF with the Tab key not only 'info@test.com' gets
> surrounded. The whole line gets surrounded.
>
The 'small space' your see is the whitespace in your markup. Browsers
are supposed to ignore but IE doesn't to fix put the closing TD tag
immediately after the closing A tag
<table>
<tr>
<td><a href="somewhere.html">To Somewhere</a></td>
</tr>
</table>
> Here an example:
> <table width = "100%">
^^^^^^^^^^^^^^
put in your stylesheet not your markup
> <tr>
> <td align = "center">
^^^^^^^^^^^^^^^
put in your stylesheet not your markup
> <a href = "mailto:info@test.com" style =
> "display:block">info@test.com</a>
> </td>
> </tr>
> </table>
>
> If I don't use 'style = "display:block"' only 'info@test.com' gets
> surrounded. That's what I'd like to have.
>
> Is it possible to avoid the space after a HREF so that still only
> 'info@test.com' gets surrounded if it gets seleced by the Tab key?
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|