Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   [SOLVED] Trying to create buffer around embedded video using "hspace=xx" code (http://forum.bytesforall.com/showthread.php?t=6639)

bryce Apr 7, 2010 11:58 AM

[SOLVED] Trying to create buffer around embedded video using "hspace=xx" code
 
I have a video embedded on one of my pages (http://www.rebuildingalliance.org/pr...ppened-to-abir). I would like to create a buffer area so that text does not run up right against the video.
I've used the "hspace" and "vspace" code and it seems to work initially, but it eventually disappears.

The code is:
<object style="float: right;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="315" height="259" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="left" /><param name="src" value="http://www.youtube.com/v/34cruJsVMRc" /><embed style="float: right;" type="application/x-shockwave-flash" width="315" height="259" src="http://www.youtube.com/v/34cruJsVMRc" align="left"></embed></object>

I have put ' hspace="10" and vspace="10" ' right in front of the width and height code, so the first line of code looks like
<object style="float: right;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" hspace="10" vspace="10" width="315"...>

I seems to save the code for a time, but eventually (within 10 or 15 minutes) the hspace and vspace codes have disappeared.

Anyone know a way to work this out?

lmilesw Apr 7, 2010 01:11 PM

The easiest way I can think of is to use the [embed] shortcode as follows and you can tweak the css to your hearts content.
HTML Code:

<div style="float:right;margin-bottom:5px;">[embed]http://www.youtube.com/watch?v=dGSK-gBPFW8[/embed]</div>

bryce Apr 7, 2010 04:40 PM

Thanks a lot Larry. That seemed to do the trick.

-Bryce


All times are GMT -6. The time now is 04:25 PM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.