You are here: Re: tables and anchors « HTML « IT news, forums, messages
Re: tables and anchors

Posted by Jukka K. Korpela on 12/22/07 21:35

Scripsit eliza.block@gmail.com:

> I'd like to be able to
> put anchors within the table so that clicking on, say, "S" jumps to
> the names ending in S. But putting a line like <a id="S"></a> into the
> table between rows doesn't work.

Anything between rows (except <tbody> tags, which is irrelevant here) is
invalid markup.

> I discovered that <td id="S"></td> generates the right behavior; the
> problem is that it leaves an ugly space between rows in the table.

You shouldn't use dummy (empty) cells. Instead, put the id="S" attribute
into the <td> tag of the first cell in a row. (You could also use <tr
id="S">.)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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