skip to Main Content

Html – CSS calc Function

Can I use the CSS calc function to subtract a percentage from a percentage? Example: margin-left:calc(100% - 14%); This is what I tried calc(100% - (6 * 12%)). I have 6 boxes with with being 12% of the container they…

VIEW QUESTION

Css – How to override imported styling with tailwind

I have a react project where I use tailwind. I have an index.css file that I am importing at the root of my project. The index.css file looks like this: @import "tailwindcss/base"; @import "@navikt/ds-css"; @import "@navikt/ui-common/styles/index.css"; @import "tailwindcss/components"; @import "tailwindcss/utilities";…

VIEW QUESTION
Back To Top
Search