“Tailwind Flex” Kod odpowiedzi

poziome wyrównanie wiwinów

  <div class="flex items-center justify-center h-screen">
    
	<div class="bg-indigo-800 text-white font-bold rounded-lg border shadow-lg p-10">
		Centered Content
	</div>
	
  </div>
Grumpy Goldfinch

Ostra ogniowa spa jest pomiędzy

<div class="flex justify-between ...">
Beautiful Bear

Flex Direction Tailwind

<div class="flex flex-row-reverse ...">
  <div>1</div>
  <div>2</div>
  <div>3</div>
</div>
Beautiful Bear

Siatka obrazu Tailwind CSS

########### Responsive Grids ###############

<div class="flex flex-wrap">
  <div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/6 mb-4 bg-gray-500"></div>
  <div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/6 mb-4 bg-gray-400"></div>
  <div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/6 mb-4 bg-gray-500"></div>
  <div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/6 mb-4 bg-gray-400"></div>
  <div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/2 xl:w-1/6 mb-4 bg-gray-500"></div>
  <div class="w-full sm:w-1/2 md:w-1/3 lg:w-1/2 xl:w-1/6 mb-4 bg-gray-400"></div>
</div>
Lokesh003

Tailwind Flex

flex w-full flex-wrap mt-4 mb-8 content-center
Witty Weevil

Flex Wrap Tailwind

.flex-no-wrap 		= { flex-wrap: nowrap; }
.flex-wrap	  		= { flex-wrap: wrap; }
.flex-wrap-reverse 	= { flex-wrap: wrap-reverse; }
Graceful Gull

Odpowiedzi podobne do “Tailwind Flex”

Pytania podobne do “Tailwind Flex”

Więcej pokrewnych odpowiedzi na “Tailwind Flex” w CSS

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu