skip to Main Content

Css – The `px-3` class does not exist. If `px-3` is a custom class, make sure it is defined within a `@layer` directive

I have a very simple tailwind.config.js file defined as follows: const defaultTheme = require('tailwindcss/defaultTheme'); /** @type {import('tailwindcss').Config} */ module.exports = { content: ['./src/**/*.{js,jsx,ts,tsx}'], presets: [], darkMode: 'media', // or 'class' theme: { fontFamily: { sans: ['var(--font-satoshi)', ...defaultTheme.fontFamily.sans], }, }, plugins:…

VIEW QUESTION

Html – Spacing of elements in Navbar – Tailwind CSS

<div class="flex bg-black h-12 items-center space-x-11"> <nav class=""> <span> <a class="text-white text-3xl font-bold hover:text-gray-300 hover:underline" href="#" >Corner Hair Salon</a > </span> <span> <a class="text-white text-3xl hover:text-gray-300 hover:underline" href="#" >Home</a > <a class="text-white text-3xl hover:text-gray-300 hover:underline" href="#" >About</a > <a class="text-white…

VIEW QUESTION

Reactjs – How to resolve this issue, I want to make my image circular using tailwind css?

<div className='flex justify-between w-full'> <div className='px-1 w-full'> <img src='https://images.unsplash.com/photo-1566275529824-cca6d008f3da?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8cGhvdG98ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=800&q=60' alt='Pic' className='h-10 w-10 rounded-full border-2 w-full' /> </div> <p className='border-2'><span className='text-lg font-semibold'>dottt</span> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard…

VIEW QUESTION
Back To Top
Search