• Resolved judyosh

    (@judyosh)


    I’m trying to embed a centered video using the mediaelement template using the recommended CSS to no avail. It only works when I take the mediaelement parameter out as below:

    [evp_embed_video url=”http://localhost/wordpress/wp-content/uploads/2017/06/…..mp4″ autoplay=”true” class=”fp-slim” alignment=”center”]

    Suggested CSS (I added the important!, still doesn’t work):

    .wp-video {
    text-align: center important!;
    margin-left: auto;
    margin-right: auto;
    }

    Now I’m stuck with a centered Flowplayer branded video, not what I want. Something is getting overridden when mediaelement is specified. Any ideas of what has to be added and where to make this happen?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Noor Alam

    (@naa986)

    Hi, It’s !important (not important!). The default CSS seems to be working fine for me in WordPress 4.8.

    
    .wp-video {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    

    Please provide a link to the page in question so I can take a look.

    Thread Starter judyosh

    (@judyosh)

    Yep, already tried that. No can do, still under development on localhost. Thanks anyway.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mediaelement template doesn’t center, only Flowplayer does’ is closed to new replies.