Fehler: Änderung H2 in custom.css

Kirstin's Avatar

Kirstin

17 Jan, 2023 11:49 AM

Produkt: Tao Contao
Contao-Version: Version 4.9.21

Guten Tag,
wie kann ich die H2 über die custom.css anpassen? Die H1 konnte ich nur über die main.css anpassen, bei der H2 hat leider nicht geklappt. Angepasst werden sollen die Farbe und Schriftgröße.
Vielen Dank und freundliche Grüße,
Kirstin Kohtz

  1. Support Staff 1 Posted by RockSolid Theme... on 17 Jan, 2023 11:59 AM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    fügen Sie dafür bitte folgenden CSS-Code in die Datei files/tao/css/custom.css ein:

    .main-content h2, h2 {
        font-size: 2.5em;
        color: #ff0000;
    }
    

    Ersetzen Sie dabei 2.5em mit der gewünschten Schriftgröße und #ff0000 mit der Schriftfarbe.

  2. 2 Posted by Kirstin Kohtz on 17 Jan, 2023 12:14 PM

    Kirstin Kohtz's Avatar

    ... dieser CSS-Code wird leider überschrieben - siehe angehängte Datei

  3. 3 Posted by Kirstin Kohtz on 17 Jan, 2023 01:04 PM

    Kirstin Kohtz's Avatar

    Vielen Dank,
    ich habe die Datei gefunden, die für das Überschreiben gesorgt hat .

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac