Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1307

Why does the class "prose" shrink elements' widths? [closed]

$
0
0

This code works when there is no class prose on <main>:

<div class="flex flex-row gap-3 w-full"><div class="basis-1/2 bg-yellow-50 p-10">    123</div>  <div class="basis-1/2 bg-yellow-50 p-10">    abc</div>  </div>

enter image description here

However, the class prose from the Typography plugin is added:

-     <main class="flex flex-row gap-3 w-full">+<main class="prose flex flex-row gap-3 w-full">

Then all element's widths shrink:enter image description here(Tailwind Play)

Why is that the case? How to prevent it?

(GitHub discussion)


Viewing all articles
Browse latest Browse all 1307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>