codedamn

Position absolute to multiple elements is overlapping

Asked by Aayush Biswas about 2 years ago

1

I am using Tailwindcss to create alert component i want align them to top-right so i positioned each one of them as absolute all the alerts are in top-right there is a rigth margin of 5 which is ok but i need to make different values for that and i don't want repeation of code. I am using map function

1 Answer

    0

    I created a parent element and positioned absolute to Right and put sm:justify-end as i am using tailwindcss it basically means on screen greater than 640px put it at justify-content: flex-end

    @aayushbiswas

    Aayush Biswas

    @aayushbiswas

Your answer