Mediaelement.js player (or overlay) and image alignment problems
-
I’ve been trying on and off to fix this problem for over a year, and I’m stumped. No amount of cajoling or threatening the CSS has worked as yet.
When using the Mediaelement player in excerpts, doesn’t matter if the player is set to display above or below the content, the player itself will not respect any alignment given to displayed featured images, and will always plop itself over the image. But the download/play links below the player do respect the alignment setting.
This happens in both Firefox and Chrome, and judging from one test, it doesn’t matter where the player is (above content or below, excerpt or single post), it will still overlap onto any feature image or post image nearby without regard for the “align left” or “align right”.
The only workaround for the archives I’ve been able to find for this is to align my featured images to the right instead of to the left, which is not optimal in all cases. Doesn’t matter in single posts where the post image is large enough.
What’s also odd is that sometimes, if the page loads slowly enough, I can see the player is correctly respecting alignment, spaced away from the image like the rest of the content, but then the js player overlay finishes loading and it’s a hard aligned left.
Best example for excerpt weirdness: https://www.kickassmysticninjas.com
- The topic ‘Mediaelement.js player (or overlay) and image alignment problems’ is closed to new replies.