Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Probleme mit Hovereffekt

Empfohlene Antworten

Veröffentlicht

Hallo,

ich möchte einzelne Tabellenzellen inkl. Inhalt per Hover ändern.

Hier der Code:

.navitext
{
color:#E0E0E0;
font-family:Tahoma, Arial, Helvetica;
font-size:11pt;
font-weight:bold;
background-color:#990000;
text-decoration:none;
}

.navitext:hover
{
color:#990000;
font-family:Tahoma, Arial, Helvetica;
font-size:11pt;
font-weight:bold;
background-color:#efefef;
text-decoration:none;
}[/PHP]

[PHP]<table>
<tr>
<td class="navitext">
<div align="center">
<a href="index.php" class="navitext">Startseite</a>
</div>
</td>
</tr>
</table>

Irgendwie klappt es nicht so ganz. Fahrt mal bitte langsam mit der Maus über die Zellen in der Navigation, dann seht ihr was ich meine.

>> Zur Seite

<a href="index.php">Startseite</a>

schon mal ohne class im verweis probiert ?

Wenn du deine .css-Datei wie folgt abänderst, sollte es funktionieren - bei mir tut es das zumindst.

td a {

  display:block; 

  text-decoration:none;

  font-family:Tahoma, Arial, Helvetica;

  font-size:11pt;

  font-weight:bold;

}


.navitext

{

  color:#E0E0E0; 

  background-color:#990000;

}


.navitext:hover

{

  color:#990000;

  background-color:#efefef;

} 

tine

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.