Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'd like to have the possibility to a align a video horizontally centered. I attached a patch providing this feature.
Comment | File | Size | Author |
---|---|---|---|
video_filter.patch | 1.29 KB | Pisco | |
Comments
Comment #1
Pisco CreditAttribution: Pisco commentedComment #2
anonWe should NOT be using the style attribure for this at all.
An idea I have is to use classes for this.
This way, everyone can override video_filters default css with their own.
The administration for this could be like:
- We have a field for classes. (video-left, video-right) and users can easyely add own classes in this field (a comma-separated list)
- In the popup we get all styles from that field, and creates a selectlist
Comment #3
blackdog CreditAttribution: blackdog commentedI like the idea of having admin defined classes, but in the meantime, I've added support for align center, as a class, since I committed #581370: Use CSS selectors tonight.