Web Builder Youtube Object Rounded Corners

Do you want to share WYSIWYG Web Builder tips, tricks, tutorials or useful HTML code? You can post it here...
(no questions or problems please, this section is not monitored by support).
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.

PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Post Reply
User avatar
BaconFries
 
 
Posts: 5365
Joined: Thu Aug 16, 2007 7:32 pm

Web Builder Youtube Object Rounded Corners

Post by BaconFries »

Have you ever wanted to just simply be able to have rounded corners on the Youtube Object in WYSIWYG Web Builder well now you can. All you need to do is insert the css code in the <head></head> section in Page HTML and hey presto ypu will have rounded corners with a color and border/radius size. You can set it to use your own preference if you wish.

For this to work you need to set in the properties of the Youtube Object in General-> Support both Flash and HTML5 this will then set the Object to use a iframe which the css below requires.

Please note that this only works if you are just using it as a embeded player it does not work with the lightbox feature.

Before:
before.jpg
After:
after.png
The CSS:

Code: Select all

<style type='text/css'>
    iframe {border:20px solid #000;
    border-radius: 20px !important;
}
</style>
User avatar
zinc
 
 
Posts: 2149
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom
Contact:

Re: Web Builder Youtube Object Rounded Corners

Post by zinc »

Nice one BF. Hope Pablo adds this nifty feature to 10 :)
Running WYSIWYG Web Builder since 2007...
Post Reply