To insert code use <code>...</code>.
How align text around a video?
  • I have tried using the short code to embed a video, and also just the iframe code from youtube, and I can't get the text to "alignleft" or get the margin style to work. Can you help? this is the code with just iframe:

    or with your shortcode:
    [video type="youtube" clip_id="M8qkGcbzqwM" width="250" autohide="1" fs="true" hd="true" rel="false"]

    If you could give me the right code to get the text align and margin to work, that would be great. I wanted a right and a bottom margin of 10.

    thank you,
    Stephanie
  • 3 Comments sorted by
  • Hi Stephanie,

    You can try use the column shortcode. Please put your video (shortcode) in one column shortcode and the text in the other.


    [two_fifth][video type="youtube" clip_id="M8qkGcbzqwM" width="250" autohide="0"]
    [/two_fifth]
    [three_fifth_last]Bla bla bla[/three_fifth_last]

    Best regards,
    Striking Team
    Paul
  • yes, that was what I did for a work around, but I was hoping to have the video in a paragraph of text. Is there a way to get that text alignment without using columns?
  • Hi

    Not that i know of. The shortcode does not support that. You will have todo this by html. Put the code below into a page in the editor swicth to html mode before inserting.


    <iframe class='youtube alignleft' style='height:165px;width:250px; margin-right:10px;' src='http://www.youtube.com/embed/M8qkGcbzqwM?autohide=2&amp;controls=1&amp;disablekb=0&amp;fs=1&amp;hd=0&amp;loop=0&amp;rel=0&amp;showinfo=0&amp;showsearch=0&amp;wmode=transparent' width='250' height='165' frameborder='0'></iframe> Pacific salmon whitebait shiner paperbone. Whalefish triggerfish barbeled houndshark mudsucker tripod fish freshwater flyingfish warty angler salamanderfish river stingray, trunkfish electric eel wallago loach goby Cherubfish scissor-tail rasbora. Ghost flathead wasp fish, boga bristlenose catfish snake eel swampfish tilefish queen danio chum salmon coho salmon midshipman opah sunfish Shingle Fish. Limia poacher glass catfish houndshark mudsucker hog sucker turbot; lampfish: Sacramento blackfish. Sweeper; candiru halfmoon skipping goby jewel tetra freshwater shark Long-finned sand diver paperbone bango orbicular velvetfish. Mrigal chubsucker roundhead freshwater shark arrowtooth eel peladillo white marlin Cornish Spaktailed Bream sind danio ling banjo catfish! Naked-back knifefish torrent fish; ricefish tapetail flathead catfish. Cookie-cutter shark, eeltail catfish deep sea bonefish, prowfish yellow-eye mullet.


    Best regards,
    Striking Team
    Paul