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.
To replicate:
- a video is embedded (could be something other than video, only video was tested) via wysiwyg editor
- AND an alignment is selected (left, right, or center)
Video does not display on page after save.
Problem:
- The code is rendered properly in HTML.
- The only difference in rendered html is this code:
<article class="embedded-entity align-left">
vs
<article class="embedded-entity">
- The CSS class "align-left" in align.module.css is
.align-left { float: left; }
- CHANGING the CSS to add a width (percentage, pixel) reveals the video on the page.
Random thoughts:
- The parent div of an image embed takes the width from the image, and all floats correctly. Note that you can select the size of an image embed. In CSS, the 'img' class is given a max width of 100%.
- The parent div of a video embed appears to ignore the iframe width, and there is no max-width set on anything within the parent div.
Comments
Comment #2
mariagwyn CreditAttribution: mariagwyn commentedComment #3
balsamaComment #4
phenaproximaComment #5
oknate