You are here: Re: changing background color of <td> when hovering « HTML « IT news, forums, messages
Re: changing background color of <td> when hovering

Posted by max on 11/06/06 16:04

Jukka K. Korpela schrieb:

> Scripsit max:
>
> > I don't succeed to change the background color in a <td> when hovering
> > over it with the mouse.
> > In this example
> > http://www.bep-zuerich.ch/test_td_hover.htm
> > the cell color of 'external' and 'internal' should change (not only
> > the color under the letters).
>
> You aren't even trying to change the background of any cell (<td>), only the
> background of some links (<a>) inside cells. Does this give a clue?
>
> Setting
> display: block; width: 100%; height: 100%;
> for the links inside cells would probably do the trick you want.
>
> But you shouldn't cell sizes in pixels. Do you really need to use a _table_
> at all? You're not showing any real example, so this is just speculation.
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/

thanks a lot. with your settings (display: block; width: 100% ...) it
worked.
about table: no, I don't need a table. I actually use <div>. your
settings work there, too.
but I have another problem there: the navigation with <div> workes well
now. I should, however, define links in the text in an other way than
links in the navigation. how can I do this? can I split the a:hover
into, say, a.normal:hover and a.navigation:hover? Here is my test file:
http://www.bep-zuerich.ch/test_div_hover.htm
and here is the website I really work with (test version):
http://www.bep-zuerich.ch/0_neu5.php
Thanks for any help. Max.

 

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

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