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.

CSS-Schriften überlagern sich

Empfohlene Antworten

Veröffentlicht

Hi Leuts,

ich brauche mal Eure Hilfe...

Ich versuche gerade, ein CSS für nen Java-File zu erstellen, das HTML-Seiten erzeugt.

Das Prob ist nur, da ich verschiedene Farben definieren muß, diese sich aber teils überlagern bzw. erst gar nicht genommmen werden. Nur die jeweils erste Klasse wird erkannt und angezeigt.

Hier mal der Code:

<style>

<!--

FONT.okay {color:#00FF00;} //Farbe:gruen

FONT.warning {color:#FFFF00;} //Farbe:gelb

FONT.cvsweb {color:#CCCCCC;} //Farbe:grau

FONT.normal {color:#FFFFFF;} //Farbe:weiss

FONT.error {color:#FF0000;} //Farbe:rot

-->

</style>

Hier wird nur grün angezeigt...

Versuchs mal mit IDs!

Im HTML würds so aussehen:

<style ...>

.white { color: #ffffff;}

.sn { color: #000000; line-height: 18px;}

</style>

<html>

:

:

<td class="sn">

<div class="white">

<a href="#.html">

hier weiß, aber mit 18px line-height

</a>

</div>

</td>

<td class="sn">

<a href="#.html">

hier schwarz, aber auch mit 18px line-height

</a>

</td>

:

:

</html>

ich hoffe ich konnte dir helfen...

greetz sayo :D

Hi Sayonara,

vielen Dank für Deinen Tip.

Leider lag es nicht daran... Aber ich hab einen Fehler gefunden... mehrere FONT.irgendwas klappten innerhalb eines <style> nicht, ich muß für jedes ein eigenes aufmachen, dann klappts, warum, weiß nur der Henker!

Jetzt ist mein externes .css fast größer als der Rest! :)

Bye!

@The Who:

Verstehe ich nicht.

Normalerweise hat man eine ausgelagerte CSS-Datei.

Die wird dann auf jede Seite eingebunden.

Wo ist Dein Problem?

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.