Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

tailwind css calc

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

// jit should be enabled in tailwind.config.js
module.exports = {
  mode: 'jit',
  ....
};
 
PREVIOUS NEXT
Tagged: #tailwind #css #calc
ADD COMMENT
Topic
Name
3+3 =