{"id":91,"date":"2025-12-07T04:59:26","date_gmt":"2025-12-07T04:59:26","guid":{"rendered":"https:\/\/digitalbondgroup.com.au\/?p=91"},"modified":"2025-12-07T05:00:35","modified_gmt":"2025-12-07T05:00:35","slug":"laravel-with-tailwind-md-directive-not-working-properly","status":"publish","type":"post","link":"https:\/\/digitalbondgroup.com.au\/?p=91","title":{"rendered":"Laravel with tailwind md: directive not working properly"},"content":{"rendered":"\n<p class=\"\">I&#8217;m writing a page with a responsive design: 2 cols side-by-side on wide screen and 1 col stacked on narrow screen like phones.<\/p>\n\n\n\n<p class=\"\">I use Laravel with tailwind and vite. <\/p>\n\n\n\n<p class=\"\">As I&#8217;m using 3 forms in this page so I cannot use grid, according to documentation as I have to use grid in one form to make the layout I want. But logically I need 3 different forms so I have to use flex.<\/p>\n\n\n\n<p class=\"\">When I try to use md:flex-row after flex and flex-col, it just refused to show a side-by-side layout no matter the screen width.<\/p>\n\n\n\n<p class=\"\">I&#8217;ll cut this short: just recompile tailwind css with &#8220;npm run dev&#8221; or &#8220;npm run build&#8221; after adding md: directive in the html so the new css file actually contains it. Otherwise, in my last issue with md:flex-row not working, there is only lg:flex-row in the css previously compiled, presumably when the new project is created.<\/p>\n\n\n\n<p class=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m writing a page with a responsive design: 2 cols side-by-side on wide screen and 1 col stacked on narrow screen like phones. I use &hellip; <span class=\"more-button\"><a href=\"https:\/\/digitalbondgroup.com.au\/?p=91\" class=\"more-link\">Continue Reading<span class=\"screen-reader-text\">Laravel with tailwind md: directive not working properly<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":92,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-front"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/digitalbondgroup.com.au\/wp-content\/uploads\/2025\/12\/tailwind.png?fit=1750%2C831&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=\/wp\/v2\/posts\/91"}],"collection":[{"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91"}],"version-history":[{"count":1,"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=\/wp\/v2\/posts\/91\/revisions\/93"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalbondgroup.com.au\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}