WordPress.org

Ready to get started?Download WordPress

Forums

How to centre videos without the grey bands on the sides (9 posts)

  1. katrina.ramunni
    Member
    Posted 1 year ago #

    My videos are aligning to the left, but they are the right size. Once I centre them to the middle, there are two grey bands on each side so that the entire video screen is the full width of the page...
    Is it possible to centre the video only?

  2. katrina.ramunni
    Member
    Posted 1 year ago #

    This is the video. Pw is wordpress
    http://katrina-r.com.au/test

  3. Peter_L
    Member
    Posted 1 year ago #

    Can't see, private post.

  4. LapanWebsite
    Member
    Posted 1 year ago #

    width="904" height="360"

    Of course there are two grey bands.

    Put height on 590px.

  5. Peter_L
    Member
    Posted 1 year ago #

    Oh, was wondering what the pw stood for. Bit slow today.

    You could either make the video as wide as its container or make the background of the video container plain white (make the grey white in other words)

  6. katrina.ramunni
    Member
    Posted 1 year ago #

    I want the video to be it's exact size.
    The current size of the video is 640x340

  7. Peter_L
    Member
    Posted 1 year ago #

    Well, the grey band of the video are caused by the background color or the container div holding the video and video controls.

    So, set grey back to white and problem should be solved.

  8. katrina.ramunni
    Member
    Posted 1 year ago #

    How do I set the background to white?

  9. Peter_L
    Member
    Posted 1 year ago #

    Alter the css that styles the video's.

    Can't say or see where it is without a test post.

Topic Closed

This topic has been closed to new replies.

About this Topic