Centre Video In Text Area 1

  • Author
    Posts
  • #106935

    I want to add a video I’ve uploaded to Text area 1 on the Presentation Page which I’ve been able to do using the code:

    [video src="https://cswgardening.co.uk/wp-content/uploads/2020/08/myvideo.mp4"]

    However it is left aligned when the rest of the Text area is centred and I’ve tried for about three hours to find a way to centre it including custom CSS, Widget / shortcode plugins and plain old HTML aligning and I can’t get it to centre.

    Somebody must have done this in the past so any advice for a simple gardener would be much appreciated.

    Website: www.cswgardening.co.uk

    #107106
    Zed
    Cryout Creations Team

    Try the following custom CSS:

    #front-text3 .wp-video {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1em; /* just is just so that it doesn't sit too close to the text below */
    }

    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
Viewing 2 posts - 1 through 2 (of 2 total)

You need to log in to reply to this topic.