Ich möchte Wörter mit hover hervorheben wenn ich ein MouseOver betreibe?

3 Antworten

Du müsstest jedes wort in ein <span> packen und dann entsprechend das :hover Attribut in CSS belegen.

Zum Beispiel:

HTML:

<span class="word">Das</span>
<span class="word">ist</span>&nbsp;
<span class="word">ein</span>&nbsp;
<span class="word">Satz</span>.

CSS:

.class
{
    text-color: black;
}
.class:hover
{
    text-color: red;
}
Woher ich das weiß:Studium / Ausbildung – Student der Informatik an der HU Berlin

Kommt auf den HTML-Code an den Du hast. Ohne den kann man dir dabei kaum helfen.

Woher ich das weiß:Berufserfahrung