I attempted to organize three buttons within a block.
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.0.3/tailwind.min.css" rel="stylesheet"/>
<div class="grid grid-cols-1 md:grid-cols-3 text-center place-content-center">
<div class="bg-blue-100 hover:bg-blue-400 h-images ">
<a class=" "
href="#">Button 1</a>
</div>
<div class="">
<a href="#">Button 2</a>
</div>
<div class="">
<a href="#">button 3</a>
</div>
</div>
The image was set to a size of 810px in the tailwind.config.js file. How can I make the buttons match this size and have the text centered within the block? I tried setting h-100
or h-full
, but these solutions didn't work. The only one that worked was h-screen
, however, this made the buttons the size of the screen instead of the containing block.
https://i.sstatic.net/JpV43.png