Why does the class "prose" shrink elements' widths? #13455
-
This code works when there is no class <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> However, the class - <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: Why is that the case? How to prevent it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @ooker777! By default, the To remove it, add - <main class="prose flex flex-row gap-3 w-full">
+ <main class="prose flex w-full flex-row gap-3 max-w-none"> You can also achieve the same results by updating the Typography Plugin configuration:
Here is the complete example: Play Tailwind - Typography Configuration. |
Beta Was this translation helpful? Give feedback.
Hey @ooker777!
By default, the
prose
plugin appliesmax-width: 65ch
to a container. This is a good practice for improving the readability of text content.To remove it, add
max-w-none
to the container.You can also achieve the same results by updating the Typography Plugin configuration:
Here is the complete example: Play Tailwind - Typography Configuration.