**SOLVED**Add Border to youtube video

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
derold
 
 
Posts: 51
Joined: Tue Feb 28, 2012 10:49 pm

**SOLVED**Add Border to youtube video

Post by derold »

WB 6-7-8-9-10-12-15
I am trying to add a border around a youtube video.
<style>
#YouTube1
{border: solid #4cbfb5 10px;}
</style>

What am I doing wrong?

It works when I manually add it to the page.

Code: Select all

<!doctype html><html><head>
<meta charset="utf-8">
<title>Untitled Page</title>
<meta name="generator" content="WYSIWYG Web Builder 12 - http://www.wysiwygwebbuilder.com">
<style>body{background-color:#FFFFFF;color:#000000;font-family:Arial;font-weight:normal;font-size:13px;line-height:1.1875;margin:0;padding:0;}</style>
<style>a{color:#0000FF;text-decoration:underline;}a:visited{color:#800080;}a:active{color:#FF0000;}a:hover{color:#0000FF;text-decoration:underline;}</style>
<style>#YouTube1{border: solid #4cbfb5 10px;}</style>
</head><body>
<div id="wb_YouTube1" style="position:absolute;left:242px;top:273px;width:358px;height:201px;z-index:0;">
<iframe id="YouTube1" src="https://www.youtube.com/embed/Es5sDrVRyuI?rel=1&amp;autoplay=1&amp;autohide=0"></iframe></div></body></html>
Last edited by derold on Mon Dec 23, 2019 5:15 am, edited 1 time in total.
User avatar
BaconFries
 
 
Posts: 5648
Joined: Thu Aug 16, 2007 7:32 pm

Re: Add Border to youtube video

Post by BaconFries »

What am I doing wrong?
I don't think you are doing anything wrong. From what I understand borders are no longer supported and are now deprecated. See the following reading from-
March 29, 2012
The border, color1, egm, hd, and showsearch parameters, which are all only supported for the deprecated AS2 Player API

https://developers.google.com/youtube/p ... Parameters
User avatar
crispy68
 
 
Posts: 2913
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Add Border to youtube video

Post by crispy68 »

I assume you are using the YouTube object in WB?

If so, click on Page --> Page HTML --> Between <head></head> tags and enter:

Code: Select all

<style>
#YouTube1{border:10px solid #4cbfb5;}
</style>
derold
 
 
Posts: 51
Joined: Tue Feb 28, 2012 10:49 pm

Re: Add Border to youtube video

Post by derold »

WOW THANK YOU!!!! That works! COOL!!!!!
Thanks "crisoy68"
User avatar
Williams
 
 
Posts: 102
Joined: Fri Nov 23, 2018 12:22 am
Contact:

Re: **SOLVED**Add Border to youtube video

Post by Williams »

AMAZING Crispy. Thank you :wink:
Very Simple.. Very easy tip..
Post Reply