DEVHIDE
        • Home (current)
        • About
        • Contact
        • Cookie
        • Home (current)
        • About
        • Contact
        • Cookie
        • Disclaimer
        • Privacy
        • TOS
        Login Or Sign up

        calc(100vh - 44px) not working in TailwindCSS 3

        8k Views Asked by سعيد At 09 June 2022 at 20:46 2025-12-18T21:54:01.607344

        I tried all of these:

        <ul className="overflow-y-auto bg-surface-50 rounded-b-lg  h-[calc(100vh_-_44px)] sm:h-fit ">
        <ul className="overflow-y-auto bg-surface-50 rounded-b-lg  h-[calc(100vh-44px)] sm:h-fit ">
        

        But when tailwind compiles, I still see no class h-[calc(100vh-44px)] and also no styling.

        reactjs tailwind-css tailwind-3 tailwind-variants
        Original Q&A
        1

        There are 1 best solutions below

        0
        سعيد سعيد On 10 June 2022 at 11:35

        So it turns out the extra space after sm:h-fit and before h-[calc(100vh_-_44px)] was the culprit. This fixed it - removing all unnecessary spaces:

        <ul className="h-[calc(100vh_-_44px)] sm:h-fit overflow-y-auto bg-surface-50 rounded-b-lg">
        

        Related Questions in REACTJS

        • What is `_dereq_()` inside React?
        • React TypeError: React.renderComponent is not a function
        • React - saving a component in the ref callback
        • React Rails component: manually triggering a re-render
        • React, ES6 - getInitialState was defined on a plain JavaScript class
        • How to get multiple selected options value in React JS?
        • React.render replace container instead of inserting into
        • reactjs datagrid use html
        • props is not initialized in react component
        • How to display xml data using Reactjs
        • hooking up the data model in ReactJS - syntax
        • ReactJS: How to use an immutable empty array or object
        • How to use Sinon.js FakeXMLHttpRequest with superagent?
        • React select onChange is not working
        • ReactJS - Tutorial Comment System > Threaded commenting

        Related Questions in TAILWIND-CSS

        • Heroku build failure with react and tailwind
        • Tailwind css dark mode does not enable
        • PurgeCSS ignores the used classes
        • How to create a custom variant in tailwindcss?
        • Tailwind - css rule is invisible if I use layer
        • Tailwind CSS logo centered
        • Tailwindcss purges whitelisted tag
        • Building tailwind css as public site and vuetify as admin dashboard
        • Remove margin on column over certain breakpoint
        • Next.JS -> A null PostCSS plugin was provided
        • How to set max width as a percentage or static value
        • How to modify svg icon colors with Tailwind
        • How to add new colors to tailwind-css and keep the original ones?
        • navbar functionlity in react and tailwind is really odd nd unsure how to fix it up
        • Deploying React with Tailwind & AOS

        Related Questions in TAILWIND-3

        • Image not clipping
        • TW-elements is broken since upgrade to Tailwind 3
        • why tailwind compile the following classname that seems not intuitive?
        • How to create and where to place a tailwind-merge config file
        • Left and right double quotation mark is not showing in tailwind css
        • Tailwind - Keep dimensions in sync across elements in a grid so they grow vertically in equal dimensions when contant changes
        • Laravel component class attribute not working with tailwindcss
        • Upgrade Tailwindcss from 2 to 3
        • how to apply inset to box shadow in tailwindcss?
        • How to create a nested menu using TailwindCss
        • How to add background color to TailWindUI Dark Nav with White Page Header in Vue 3
        • How do to customize height to Daisy UI steps?
        • How to run a command after Tailwind JIT compiler ran a build in watch mode?
        • Tailwind, Vue problem with non-English characters when using tags right after eachother
        • TailwindCSS - Add many properties after media queries

        Related Questions in TAILWIND-VARIANTS

        • Duplication vs. Tailwind Variants: Finding the Right Balance
        • How to add custom theme to tailwind css besides dark and ligth
        • Tailwind Object-fit doesn't function
        • calc(100vh - 44px) not working in TailwindCSS 3
        • Extending Tailwind "modes" alongside dark mode
        • Tailwind Variants with container queries breakpoints
        • How to set border bottom except the bottom sets using react, and css
        • ReactNative with tailwindccss, className only accept one styling?
        • first: and last: , even: and odd: don't work on "tailwindcss": "^3.1.6"
        • Tailwind rn installed but not styling views
        • How can I add spacing in file upload button
        • In my next js app, I am using tailwind css for styling, but when I am writing custom properties in tailwind css like - w-[220px], h-[120px]
        • How to add custom class when I have this problem?
        • Use Tailwind-Merge or Tailwind-Variants On Oxygen Runtime
        • How to dynamically pass tailwind styles from props

        Trending Questions

        • UIImageView Frame Doesn't Reflect Constraints
        • Is it possible to use adb commands to click on a view by finding its ID?
        • How to create a new web character symbol recognizable by html/javascript?
        • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
        • Heap Gives Page Fault
        • Connect ffmpeg to Visual Studio 2008
        • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
        • How to avoid default initialization of objects in std::vector?
        • second argument of the command line arguments in a format other than char** argv or char* argv[]
        • How to improve efficiency of algorithm which generates next lexicographic permutation?
        • Navigating to the another actvity app getting crash in android
        • How to read the particular message format in android and store in sqlite database?
        • Resetting inventory status after order is cancelled
        • Efficiently compute powers of X in SSE/AVX
        • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

        Popular # Hahtags

        javascript python java c# php android html jquery c++ css ios sql mysql r reactjs

        Popular Questions

        • How do I undo the most recent local commits in Git?
        • How can I remove a specific item from an array in JavaScript?
        • How do I delete a Git branch locally and remotely?
        • Find all files containing a specific text (string) on Linux?
        • How do I revert a Git repository to a previous commit?
        • How do I create an HTML button that acts like a link?
        • How do I check out a remote Git branch?
        • How do I force "git pull" to overwrite local files?
        • How do I list all files of a directory?
        • How to check whether a string contains a substring in JavaScript?
        • How do I redirect to another webpage?
        • How can I iterate over rows in a Pandas DataFrame?
        • How do I convert a String to an int in Java?
        • Does Python have a string 'contains' substring method?
        • How do I check if a string contains a specific word?
        .

        Copyright © 2021 Jogjafile Inc.

        • Disclaimer
        • Privacy
        • TOS
        • Homegardensmart
        • Math
        • Aftereffectstemplates