Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Text behind image in Tailwind CSS

I want to do this: enter image description here
But my image stay in right side of div, like that:
enter image description here

Soo I don’t know why it’s happening, that’s my code:

<div class="flex h-full justify-center items-center">
        <div>
            <h2 class="font-bold text-2xl text-gray-700">Page Not Found 🕵🏻‍♀️</h2>
            <h3 class="mt-3 text-gray-500">Oops! 😖 The requested URL was not found on this server.</h3>

             <div class="lg:grid justify-center mt-4">
          <BreezeButton
            class="
              inline-table
              w-full
              items-center
              bg-purple-600
              text-white text-xs
              font-bold
              hover:bg-purple-600 hover:shadow-purple
              mt-3
            "
            :href="route('dashboard')"
          >
            Back to home
          </BreezeButton>
        </div>
        </div>
        <div>
        <img src="../../Assets/Img/error404.svg" alt="" />
        </div>
      </div>

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You flexed the wrapper div so it seems to have placed the items in a row by default. Use "flex-col" alongside that in order to place your items in a column.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading