Relative Content

Tag Archive for reactjstailwind-css

React Tailwindcss – img’s height not consistent

<img src={url} width={300} height={400} alt=”” className=”object-fill rounded-tl-md” /> I want to set the height to 400 and cover the div. But the problem I am having is that <img>‘s size is just the picture’s width and height. It is not 400px. How can I force the img to be 400px height? reactjs tailwind-css

How to fit all the avatar div into one row without scrolling but making div smaller to fit the row

<ul className=”flex flex-wrap justify-between w-full”> {pic.map((pic, index) => ( <li key={index}> {” “} <div className=”avatar p-2 cursor-pointer”> <div className=”w-[100px] h-[100px] rounded-full bg-orange-50″> <img src={pic.picture!} alt=”” style={{ maxWidth: “100%”, maxHeight: “100%” }} /> </div> </div> </li> ))} </ul> I have this one. I am trying to fit every item to one row without scrolling. if it […]

How to implement a line which guides users through a website

I’m trying to do the purple line which guides users through entire website and my stack is react, tailwindcss. I need it to be also responsive. How can I implement it? Also I need it to be aligned with button as in picture. Should I just use image, or do it with bare divs and tailwind