You are here: Re: Not only the selected HREF gets surrounded, but the whole row gets surrounded « HTML « IT news, forums, messages
Re: Not only the selected HREF gets surrounded, but the whole row gets surrounded

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация