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.
tailwind-css
10,023
questions
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 ...
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 ...
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, @...
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) {
@...
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 ...
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 ...
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 ...
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:
-----------------------------------
| |
| |
| |...
-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&...
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 ...
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": "...
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 ...
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 ...
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. (...
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 ...