Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So I'm building a template for a page(template-clock.php), but the original out-of-the-box classes of tailwind CSS just work fine but my custom ones are in the tailwind.config file:

//THIS IS THE tailwind.config file code:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./*.html'],
theme: {
extend: {
width: {
'800': '800px',
'340': '340px',
},
height: {
'400': '400px',
'200': '200px',
},
},
},
plugins: [],
}

//HTML code:



Clock


Alarm clock




the lg:800 is supposed to give 800px on WordPress but doesn't work, it works only if I use lg:w-full, lg:w-96, etc even the w-340 doesn't work

Thanks In Advance

What I have tried:

CSS just works well. I've tried using normal tailwind CSS classes but the outcome isn't how I want it to be.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900