To insert code use <code>...</code>.
Centering and Positioning Video in Anything Slider in HTML setting
  • Hi there, I'm having a small issue with video in my slider. It seems to have a small linebreak above it as a result of centering it in the box.

    I'm using HTML anything content and the youtube video shortcode. I've wrapped the shortcode in the html center tag. What am I doing wrong?
  • 5 Comments sorted by
  • Hi Paul, sorry for the hasty comment.

    I used the html anything slider and entered the youtube embed shortcode
    Its the second thing on the slider and it seems to be pushed down a linebreak by my center tag

    http://lucidsp.com/

    Is there a better way to place videos in the slider/ center them
  • To better explain, I am using the HTML anything slider and I've entered

    <center>[video type="youtube" clip_id="_QIvKrViZhU" height="440" autohide="0" autoplay="false" controls="true" disablekb="false" fs="true" hd="true" loop="false" rel="false" showinfo="false" showsearch="false"]</center>

    With this code, I am getting an unwanted linebreak at the top of my video. Please help!
  • Hi

    Try this

    <div style="margin-left:160px;">[video type="youtube" clip_id="_QIvKrViZhU" height="440" autohide="0" autoplay="false" controls="true" disablekb="false" fs="true" hd="true" loop="false" rel="false" showinfo="false" showsearch="false"]</div>


    Best regards,
    Striking Team
    Paul

  • it looked off-center still, but I was able to change it from 160 to 90px from the left.

    Thanks for your help!!
  • Hi,

    Yes it was off-centered as I just put in a dummy value and left you to set the value that works for your site design. Glad you solved it and picked up the idea to get it to the right place.

    Best regards,
    Striking Team
    Paul
This discussion has been closed.
All Discussions