Cannot centre align a YouTube video using Yoko theme
-
Hi there,
I am having a terrible time trying to centre align a YouTube video. I have tried several snippets of code including…
<div style=”text-align:center;”>[youtube=http://www.youtube.com/watch?v=tKWkdfcrcNI&w=420&h=315]</div>
Please can you help?
Nicola.The blog I need help with is: (visible only to logged in users)
-
Hi there,
It appears that theme doesn’t center embedded videos by default. I’m looking at other solutions for you, and will report back shortly.
-
Okay, I was able to get the video to center without using custom CSS by using the following code in your text editor window:
<table style="margin:0 auto;"> <tr> <td>[youtube=http://www.youtube.com/watch?v=tKWkdfcrcNI&w=420&h=315]</td> </tr> </table>Note that what you want to do is create a table that’s centered, and then insert your youtube link inside that.
I was unable to remove the border.
If you want more control over this, you can purchase the Custom Design upgrade so you can modify your CSS, and then for help with the code itself, you can post in the CSS Customizations forum.
-
Fantastic Jackie! That worked a treat. I don’t mind the border at all :)
Thanks so much. Super service.
Nicola.
-
- The topic ‘Cannot centre align a YouTube video using Yoko theme’ is closed to new replies.