Forum:(Solved) Aligning YouTube videos

ShoutWiki — express yourself and be heard!
Jump to navigation Jump to search
Forums: Index > Community help

I would like to align some YouTube videos on this page to the right side, but I bumped into a problem. If I use this

<div class="thumb tright"><youtube>video_ID</youtube></div>

HTML code, the video will simply leak into the next topic, as shown on the following image


Is there some workaround for this? --MYself (talk) 15:30, 10 January 2014 (UTC)

Here is a video aligned to the right:
As for stuff floating on the right or left, and controlling how far down it will go, and how much text you allow to wrap, you might use various clear tags:
{{clear left}}
{{clear right}}
Not all the clear templates are implemented by default on wikis. So you might need to copy them from other wikis such as mine, Wikipedia, etc..
You can find them on my wiki in the template categories or subcategories. Not all wikis implement such templates the same. They are often much more simplified than the massively complex ones found on Wikipedia. --Timeshifter (talk) 20:44, 10 January 2014 (UTC)
Thank you for the tip, but no matter what I tried, so far, the video still overlapped the header below. Can you suggest me some direct solution, that I can use without making any template first? Thanks in advance. --MYself (talk) 14:32, 11 January 2014 (UTC)
Ha, found it! I just needed to follow the suggestion on s:w:cannabis:Template:Clear, and append the code at the end of the line. Thank you very much, Timeshifter! --MYself (talk) 14:47, 11 January 2014 (UTC)
You're welcome. Templates are easy to create if you just copy them from somewhere else. That is what I do. I usually delete the documentation subpages since they are unnecessary and duplicative.
I strip out everything possible, especially the complicated coding when possible. I point people to the source templates elsewhere if people want documentation, more options, and more complex templates.
I just deleted the documentation subpage for s:w:cannabis:Template:Clear, and added the info directly to that page. So now everything for that template is on one page, and it is easy to copy elsewhere. --Timeshifter (talk) 23:17, 11 January 2014 (UTC)