tailwind-scrollbar | Scrollbar plugin for Tailwind CSS | Plugin library
kandi X-RAY | tailwind-scrollbar Summary
kandi X-RAY | tailwind-scrollbar Summary
Scrollbar plugin for Tailwind CSS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tailwind-scrollbar
tailwind-scrollbar Key Features
tailwind-scrollbar Examples and Code Snippets
Community Discussions
Trending Discussions on tailwind-scrollbar
QUESTION
I am currently working on a component's responsive styling wherein on large screens I have the div with the text element sitting on top of the div containing the img
element and on smaller and medium screens have the div with the image aligned right below the div with the text element. I am using Next.js and and Tailwind CSS for styling.
The styling works fine on large screens but for some reason the div with the text element is not showing in small screens when I already have flex flex-col-reverse
in the parent element
Here is how the entire code look like:
...ANSWER
Answered 2021-Sep-22 at 07:33forgot to post the answer. I actually solved the following day.
First. flex-col-reverse
is actually working.
Second. setting nextjs's component's
objectFit
property to cover
will set the img
element to cover the entire area of it's grandparent element so to contain it you add position relative
to the parent div containing it and make sure to define it's height too.
something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tailwind-scrollbar
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page