Skip to content

Instantly share code, notes, and snippets.

@waseemsadiq
waseemsadiq / flex-to-table-for-ie
Created November 6, 2020 13:26
tailwind .flex to IE friendly code for dummies
/* IE9, IE10, IE11 | see: https://stackoverflow.com/a/30743013 */
@media screen and (min-width:0\0) {
.flex {
display:table;
width:100%;
}
.flex > div {
display:table-cell;
}
}
<?
$tweet = data('https://publish.twitter.com/oembed?url=https://twitter.com/twitter/status/'.$tweet_id);
//var_dump($tweet);exit;
$name = $tweet->author_name;
$url = $tweet->author_url;
$handle = '@'. preg_filter('#https://twitter.com/#siU', '', $url);
$html = preg_filter('#<script(.*)>(.*)<\/script>#siU', '', $tweet->html);
?>
<div class="w-96 m-auto bg-white rounded-xl border border-gray-300 pt-4 pb-2 px-4">
<div class="flex">
<?php
return [
'ext:pages.template.filter.tailwindclasses' => [
'enable' => true
],
];