Relative Content

Tag Archive for reactjstailwind-css

im creating a project using react.js and tailwind css and at one point i added bg image using tailwind css to my div from there im gettiing error

Compiled with problems:
×
ERROR in ./src/global.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/global.css) 5:36-89
Module not found: Error: Can’t resolve ‘/images/Rectangle_img.jpg’ in ‘D:React-Coursedental_care_landing_pagesrc’

Why children of flex container overlapping

section is a flex container with two div child. Both the divs are also flex container with img being it’s children. Every div has 3 images. image of div1 is overlapped by the image of div2.

Tailwind with React, multiple fixed sizes not working

While learning React, Next.js and Tailwind, I have encountered some weird behavior. I can only use some of the fixed sizes provided according to the docs (https://tailwindcss.com/docs/size). In the code below, size-30 is not working, nor is size-50. However, size-20, size-40 and size-60 are working.

Tailwindcss Failed to compile because of some css files

I’m currently facing this problem whenever I want to build my application.
Failed to compile.
static/css/main.8da26278.css from CSS Minimizer plugin
cssmain.8da26278.css:1356:42: Unknown word [webpack://./src/index.css:3,0][static/css/main.8da26278.css:1356,42]

Tailwind column system

I made this grid system with 12 columns, the detail is that I want to modify it in a way that I don’t know if it is possible. The modification consists of adding two more columns, one at the beginning and one at the end, those two columns would be 1fr. I did that part, but what I would like to do is that between column 1 (1fr) and 2 (84px) there is no gap and the same case between column 13 (84px) and 14 (1fr). I attach the code that I have so far.
enter image description here
enter image description here

How to make animation of slides appear when scrolling?

I need to make animation of slides and content with progress bar on react like here http://warsawrising.eu/, i.e. you have a full screen block with picture on background and text -> spin the wheel down -> text and picture on background disappear with animation and new picture on background and text with animation appears and progress bar fills up. Maybe it’s not the slides, maybe it’s just the way I put it. Been racking my brain for a few weeks now and can’t find a solution. Maybe someone can give me some ideas and tell me how to do it.