Category "css"

React heroicons icons are always black

I'm using @heroicons/react: ^1.0.5 and I'm trying to style the icons by applying another color. I'm using tailwindcss to manage my CSS. When I declare the follo

How can I change the background color based on a value?

I'm learning React and this question came up. Can I change the background color depending on the variable value that came as a prop? thanks import React from 'r

How do I get smooth scroll and scroll snap to work together in React while also persisting user scroll position on refresh?

I have a custom hook that persists the user's scroll position on page refresh. I also want to implement smooth scrolling for my navigation links (site is a sing

Have a navigation bar on right in order [closed]

I've an issue with the order in a navigation bar to recreate the Google page with a proper order. I tried flex-direction: row-reverse; but i

CSS Animation Keyframes not working on Iphone/Ipad

I have made a keyframe animation with words shifting in the end of the sentence. It works in Chrome, but doesn't work in Safari. What am I doing wrong? This is

How to wrap 2nd div to collapse top first?

I want to wrap the Column 2 to be at the top as it will contain a cover image. I have an example HTML below * { box-sizing: border-box; } /* Container for

FlowType.js and flexbox doesn't work together

so Iam using FlowType.JS it works and the text become I mean the the text become responsive. but if I wrote display: flex; or width: fit-content; the FlowType.J

Dynamically set background color based on value from DB

The db stores hex values which will then be used to set the background color of the div. How can I pass the value which is coming through from the DB to the css

How to prevent paragraph from expanding bootstrap's col-auto parent width?

I'm using bootstrap's row with two col-auto. Inside the second, I have a form with <input>'s and a paragraph <p>. This second column should have a m

Is there a method to group different type of col in a class

I'm working on a project where often I need to implement the same type of tag such as <div class="col-12 col-md-10 col-lg-8 col-xl-4"> and I want to creat

css grid height scroll bar

I have this css .App { font-family: sans-serif; text-align: center; display: grid; margin: 10px; border: 1px solid; height: calc(100vh - 20px); } t

Full height & width without scrollbar in Material UI React app

I am trying to render a page for full height. But it adds a scrollbar which is undesirable. With 100% height, I mean just the size of the screen. Here is the d

SVG icon destroys the color of the following SVG icon

On my website I use the icons of Instagram and Telegram as inline SVG images. If I do so, the color of the Telegram icon is destroyed. If I remove the Instagram

How can I override styles of a local html page using Firefox userContent.css?

I'm using, to no avail, @-moz-document url within the file userContent.css to apply CSS rules in a specified URL. Here are the HTML and CSS code: HTML (page.htm

windicss classes doesn't work in Nuxt App

I got some issues with windicss. Classes don't apply on elements. I've tried to install an older version of windi and it still doesn't work. I've even tried to

Is it possible to extend the borders of table data <td> to align with content that has been moved via negative margins?

I have a collapsible table, which opens and closes when clicking on Accounting. It requires a unique layout. I have added a checkbox to my collapsible rows, w

Active Element Issue on Firefox for Android

I want a button to change color while the user has clicked on the button and hasn't released it yet (on Mobile: while the user touches the button). For changing

Is there a way to add style to flask app?

I'm trying to add css to my html page in Flask, but it doesn't work. I tried the code in online editor and it works. HTML page (results.html): <div> <l

When colors are set in tailwind.config.js the default tailwind colors won't work anymore

I am using Tailwind for a little Wordpress project I am creating. So I have set things up with webpack. This works absolutely fine. Tailwind does its tree shaki

Safari CSS relative parent & relative child with pseudo selector does not match other browsers output

I am not looking for an answer to fix the code, moreso an answer or explanation as to why. Safari will render children elements with a relative parent in a comp