![]() Services such as YouTube provide code that you can copy and paste into your own website to embed content. I’ve used techniques I learned from his tutorial and expanded on them here for additional content types such as calendars. Note: This technique was originally detailed in Thierry Koblenz’s excellent tutorial ‘ Creating Intrinsic Ratios for Video’. For those occasions when non-coders will be embedding video on your website and you don’t want to rely on them adding extra markup, we’ll also look at a solution that uses JavaScript instead of CSS. ![]() In this article, we’ll show you how to make embedded content responsive using CSS, so that content such as video and calendars resize with the browser’s viewport. ![]() One of these is the good ol’ iframe, which you may need to use when embedding content from external sources such as YouTube. For those occasions when non-coders will be embedding video on your website and you don’t want to rely on them adding extra markup, she’ll also look at a solution that uses JavaScript instead of CSS.Ī few HTML elements don’t play nice with responsive layouts. You may need to use it when embedding content from external sources such as YouTube, so in this article, Rachel McCollin will show you how to make embedded content responsive using CSS. Iframe is one of the few HTML elements that don’t play nice with responsive layouts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |