Relative Content

Tag Archive for htmlcssflexboxtailwind-css

flex box in footer parts

So I making a bottom footer I want that div to placed at top right using flex, can someone help me with this?

Tailwind: Why my div is not fitting the width of the image but expanding to longer width?

My div (highlighted with background yellow) is expanding horizontally i.e., it’s width is increasing. I think it is increasing to the full width of the image i.e., 800px + margins. How can I make sure this div’s width and height is equal to the shrunk containing image? So that the next element with text- “Test” is displayed right next to it. Thanks!

Why does Flex causes multiple images to shrink?

I want to create a carousel of identically sized images using Tailwind CSS. I want to have 5 images next to each other that the viewer will be able to scroll left and right to see the images. When the images were imported without Flex, they fit the max-width that i’ve set beforehand. however, after implementing Flex, the images did become side by side, but their width shrink.