andrew covell's profile picture

Published by

published
updated

Category: Web, HTML, Tech

iframe rounding edges

i highly recommend checking out my previous iframe blog before reading this one here's the link https://blog.spacehey.com/entry?id=48074  with that out of the way the important part about the previous entree was how to change youtube border size and color well i started noticing not long after posting that blog some layouts where these videos don't have a border but actually have their shape manipulated to be more round which is great cuz it gives this kind of CRT feel so i started looking around for how to do this this actually can be applied to other things than iframe but heres the code you need 

style="border-radius: 50px"
of course you don't need the style= if you're applying to something other than iframe put this code in place of 
frameborder="0"
just like when you where manipulating the border with the previous blog entree to increase roundness increase the px number to decrease roundness obviously decrease the px number (the example is set to 50px cuz this got me the desired effect in my test on how i will probably be using this code) i hope this helps you out if you're trying to figure this out honestly this blog is more for me than anyone else


2 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )