Fiddle: https://play.tailwindcss.com/pvT1jW8zZd
Here is the code snippet I am working with:
Here is how it currently appears:
https://i.sstatic.net/2SRny.png
<div class="bg-yellow-300">
<div class="p-16 m-5 text-xl bg-gray-500 ">
Koalas are quite interesting animals. What sets them apart is their small brain to body ratio and the fact that their brains are smooth. Unlike other mammals, koalas have smooth brains which limits their cognitive abilities.
...
In summary, koalas may not be the smartest creatures and are known to have various health issues. Despite this, their cuteness is appealing to many despite their unique physical features.
</div>
<div class="bg-blue-500 sticky text-xl bottom-5 right-5
rounded-lg p-5 ">
<a >UP</a>
</div>
</div>
However, I would like it to appear like this instead:
https://i.sstatic.net/nVMPK.png
How can I achieve this layout? I am seeking to adjust the button width to fit the content ('UP') and the specified padding.