Verwendung: Video in “Custom Elements Zentrierter Bereich“

thomas's Avatar

thomas

27 Nov, 2025 11:59 AM

Produkt: Tao Contao
Contao-Version: 5.6.4

Ich möchte für ein Video in “Custom Elements Zentrierter Bereich“ die Hintergrundposition/Rechts | Unten anwählen. Doch leider funktioniert dies nicht.
Eine weitere Frage wäre ob es die Möglichkeit gibt die Grösse des Videos anzupassen.
Besten Dank für Eure Hilfe :-)

  1. Support Staff 1 Posted by RockSolid Theme... on 27 Nov, 2025 12:45 PM

    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:

    .centered-wrapper-background video {
        object-fit: contain;
        object-position: bottom right;
        width: 100%;
        height: 100%;
    }
    

    Damit wird das Video so weit verkleinert, dass es nicht mehr beschnitten wird und die Position wird auf rechts unten festgelegt.

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