Verwendung: Newseinträge unabhängig von Länge des Teasertexts in neuer Zeile anfangen lassen

Juergen's Avatar

Juergen

12 May, 2021 12:32 PM

Produkt: Tao Contao
Contao-Version: 4.9
Browser und Browserversionen: alle

Die Newseinträge umfassen neben h3-Titel ein Bild (links, umfliessend), den Teasertext und "Weiterlesen". Der Text ist dabei oft nicht lang genug, so dass der nächste Eintrag einschl. Titel und Bild rechts vom Bild des vorherigen Eintrags beginnt. Wie kann man das abstellen, so dass jeder Eintrag untereinander erfolgt? Ich habe - da ich zuvor eine entsprechende Fehlermeldung bekam, das Template news_latest_image.html5 aus 80:20 übernommen, da ich in Tao keinen entsprechenden Eintrag fand.

  1. Support Staff 1 Posted by RockSolid Theme... on 14 May, 2021 01:28 PM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Dafür können Sie z. B. folgenden CSS-Code einsetzen:

    .mod_newslist > .layout_latest {
        clear: both;
    }
    
  2. 2 Posted by jelingnau on 14 May, 2021 01:55 PM

    jelingnau's Avatar

    Vielen Dank - sieht gut aus.

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