1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 14:54:51 +00:00
TiddlyWiki5/editions/de-AT/tiddlers/system/$__editions_de-AT-DE_iframe-responsive.tid
2015-06-15 15:32:35 +02:00

10 lines
494 B
Plaintext

created: 20150615125628093
modified: 20150615131411878
tags: $:/tags/Macro
title: $:/editions/de-AT-DE/iframe-responsive
type: text/vnd.tiddlywiki
\define iframe-responsive(src; ratio:"56.25%"; allowfullscreen:"allowfullscreen"; frameborder:"0")
<div style="width: 100%; padding-bottom: $ratio$; height: 0px; position: relative;"><iframe style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px;" src="$src$" frameborder="$frameborder$" $allowfullscreen$></iframe></div>
\end