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

How to make div at right side of horizontally justified (centered) element. In Tailwind or CSS

$
0
0

How to make this to be exact:-enter image description here

In the above there is a div justified at the center, and then another div next to it. The width of both the div's changes with animation and buttons.

<script src="https://cdn.tailwindcss.com/3.4.3"></script><div class="flex justify-center"><!-- This is unneeded extra placeholder --><div class=" bg-blue-300 grow"></div> <!-- center content whose width is not determined --><div class="py-10 bg-yellow-300">Center Me</div><!-- right content whose width is not determined --><div class=" bg-blue-300 grow"><div>Needs to be in right of center</div><div>TEXT TEXT TEXT</div></div></div>

Viewing all articles
Browse latest Browse all 1442

Trending Articles



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