Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

tailwind css calc

class="w-[calc(100%+2rem)]"

// jit should be enabled in tailwind.config.js
module.exports = {
  mode: 'jit',
  ....
};
Comment

How to use calc() with Tailwind CSS

<div class="bg-red-500 w-24 h-[calc(100vh-36px)]"></div>
<div class="bg-red-500 w-24 h-[calc(100vh_-_36px)]"></div>
Comment

tailwind calc

class="w-[calc(100%+2rem)]"
Comment

tailwind calc

.content-container {
  height: calc(100vh - theme('spacing.7'));
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: unique array javascript es6 Map 
Javascript :: fetch with bearer token 
Javascript :: javascript check if value is not empty string 
Javascript :: document.ready shorthand 
Javascript :: how to sum array elements in javascript 
Javascript :: array reverse without mutating 
Javascript :: ejs view engine 
Javascript :: tailwind install nextjs 
Javascript :: jquery get first character of string 
Javascript :: noconflict jquery 
Javascript :: increment day date javascript 
Javascript :: validators.pattern angular number 
Javascript :: Check if a JavaScript string is a URL 
Javascript :: how to check element is in viewport 
Javascript :: copy an array without pointer in angular 
Javascript :: twitter icon in next js 
Javascript :: removing duplicates in array javascript 
Javascript :: laravel ajax csrf 
Javascript :: js get last 4 digits 
Javascript :: puppeteer clear input 
Javascript :: react native port 
Javascript :: ckeditor change value 
Javascript :: javascript custom events with data 
Javascript :: javascript get width of a div 
Javascript :: remove menu bar electron 
Javascript :: fibonacci js code 
Javascript :: npm create react app 
Javascript :: js parse url decode 
Javascript :: Codewars Beginner - Reduce but Grow 
Javascript :: how to convert timestamp to date in react native 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =