Skip to main content

Questions tagged [tailwind-css]

Tailwind CSS is a highly customizable, low-level CSS framework that gives you all of the building blocks you need to build bespoke designs without any annoying opinionated styles you have to fight to override.

0 votes
1 answer
1k views

How do I make TailwindCSS Group-hover work in codesandbox?

I grabbed markup from - https://tailwindcomponents.com/component/button-dropdown And tried to apply the same markup using a Codesandbox instance. I updated the module for visibility in tailwind.js ...
Shawn Matthews's user avatar
0 votes
2 answers
269 views

SVG display block causes gap between elements in IE 11

I Know that internet explorer doesn't play nice with SVGs. I notice that when changing display: block to display: flex does decreases the size of the gap. however it doesn't remove it. I am declaring ...
Steven Aguilar's user avatar
13 votes
2 answers
14k views

Combining tailwind css with sass using webpack

I'm struggling a bit getting Tailwind CSS to work with SASS and Webpack. It seems like the postcss configuration for tailwind doesn't really do anything in terms of processing @tailwind preflight, @...
Bo Mortensen's user avatar
45 votes
5 answers
78k views

Tailwind CSS - Responsive breakpoints as components

How should I deal with responsive breakpoints as components in Tailwind? Without Tailwind, I used to declare breakpoints as a scss mixins: @mixin tablet-portrait { @media (min-width: 700px) { @...
aitor's user avatar
  • 2,615
4 votes
2 answers
6k views

Add Navigation Tabs to Tailwind CSS Navbar

So I've designed this tailwind CSS navbar, but I'm having trouble adding tabs to it. Here is a link to my navbar. Hopefully, someone can help add some Dropdown menu, so I can use it in my project. I ...
manshu's user avatar
  • 1,105
0 votes
1 answer
494 views

How to have global css styles alongside in-js component styles using Webpack and Angular?

I have a Webpack + Angular project and I want to have a separate global stylesheet alongside the component styles, similar to what angular-cli does out of the box. I am using sass for the component ...
ge022's user avatar
  • 134
3 votes
2 answers
12k views

Using flex-row and flex-col with tailwind not aligning correctly using computer and phone

I'm having a problem with a website of mine with trying to make it responsive using flexbox and tailwind with flex-row sm:flex-col and it's not outputting in rows only weird columns. Keep in mind I am ...
Kobbi's user avatar
  • 129
156 votes
14 answers
313k views

Vertical align with Tailwind CSS across full screen div

How can I vertically align a div with Tailwind? What I want: ----------------------------------- | | | | | |...
ajthinking's user avatar
  • 4,148
-2 votes
1 answer
8k views

Tailwind CSS Site not showing responsive version [closed]

When I view this site in Chrome and use dev tools to view mobile site it correctly shows as 1 column but when viewed from iPhone still 2 columns? <!doctype html> <html lang="en"> <head&...
Andrew Westrope's user avatar
0 votes
1 answer
286 views

WebPack / Method of replicating Tailwind CSS's @apply directive to move away from @extend in SASS

I'm working on an internal CSS 'framework' / methodology that sits somewhere between ITCSS and Tailwind. We use alot of utility classes, but sometimes the actual class name gets too long and we wish ...
Lovelock's user avatar
  • 8,015
0 votes
1 answer
1k views

sh: 1: tailwind: not found when deploying to heroku

package.json: "devDependencies": { "tailwindcss": "^0.7.4" }, "scripts": { "tailwind:css": "tailwind build src/css/tailwind.src.css -c tailwind.js -o src/css/tailwind.css", "start": "...
Grewal's user avatar
  • 47
11 votes
1 answer
15k views

Aligning two elements, one left and the other right

I'm experimenting with TailwindCSS for the first time and I'm trying to customize the table in the last row of the temple below. https://www.tailwindtoolbox.com/templates/admin-template-demo.php I'd ...
Sig's user avatar
  • 5,800
5 votes
1 answer
9k views

Flexbox children not having same height

I thought flexbox makes its children having same height, meaning all children will be as tall as the highest (tallest) child and parent makes this by having default value of align-stretch for cross ...
Idiot's user avatar
  • 85
1 vote
1 answer
4k views

Tailwind - How Flex-No-Shrink and Flex-Wrap Work

I have two issues, "Flex-no-shrink" does not work when I specify width(say w-1/5)... Isn't this possible? As soon as when I specify some width on a div, all flex properties seem to be not working. (...
eleven0's user avatar
  • 273
0 votes
2 answers
45 views

How do you put the div to the right

<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/0.7.4/tailwind.min.css" rel="stylesheet" /> <header class="bg-red p-5 flex border-b-2 border-white border-b-4"> <h1 ...
TheBAST's user avatar
  • 2,716

15 30 50 per page
1
663 664
665
666 667
669