Category "css"

How to conditionally apply CSS classes in React JS

I've been musing on how best to conditionally apply a CSS class in React JS. I've seen some answers banding around but there aren't many out there or they're ju

How to conditionally apply CSS classes in React JS

I've been musing on how best to conditionally apply a CSS class in React JS. I've seen some answers banding around but there aren't many out there or they're ju

onChange event is not working in color type input

I search a lot and find answers on Stack Overflow but all in vain, nothing is working for me. I want to get the color value when color is changed in input field

Change color of Select component's border and arrow icon Material UI

I'm trying to use a Material UI Select component on a dark background: But I'm unable to change the color of the drop down icon and underline border to white

How to select parent components variant in styled components?

In styled-components we can add contextual styles using component selector pattern. But how do we select specific parents variants to contextually style the chi

Is there a replacement for "contain: content" for safari?

I am trying to find a replacement for the css property "contain: content" for Safari (since it works perfectly on Chrome), but I can't find any. Is there some k

background-blend-mode alternative for internet explorer

I'm using background-blend-mode on my page but IE doesn't support it. How can I solve this? My page on Chrome/Firefox: My page on IE: My CSS: div#backgr

react-quill How to properly add attribute to a specific html tag

Here is what I want to achieve. My user is typing a text in a react-quill component and each time the user type a hashtag like "#S1 " (the space is importa

FontAwesome icon not showing at all on chromium-based browsers

I'm trying to update some theme from fontawesome 4 to 5. So far everything seems to work fine, the icons in i tags are displayed. Except for one specific icon t

Centered owl-carousel where each image has the same hight and keeps its aspect ratio

Is there an approach to to create a centered owl-carousel where each image has the same height without losing its aspect ratio? I tried to calculate the image s

How to detect when the div element width change (not window resize) in JS?

I have a scenario, if div element width changes, i need to perform some functionality. So is there any way to detect that element width changes (not window resi

How to make this image blur with transparent dark background

I want to implement the image like below image with css. I mean i want to make the image background appear but in front the image should be transparent. I mean

button is not aligned with other component in bootstrap

How to align the button along with other component. means button should be on same line. it is above other components. <div className="row mb-12">

Google Cloud Storage seeing incorrect content type on my static files

My google cloud storage browser is seeing the incorrect content-type on all of my static files (css, js, jpg, etc.) and this is causing a mime type error when s

How can I prevent FilePond creating overlay for success, idle, and failure all at once?

I've enabled image preview for my FilePond component using the image preview plugin. However, when uploading an image the preview has overlays created for when

HTML table border spacing

I am trying to give spacing between columns in a html table, Actually, I thought I just wanted spacing at the right side of each column. So far, I only mana

Can an iframe use assets from parent page?

I would like to use a font in an iframe which I know will be loaded already in the parent html page: can the iframe css simply refer to it as if the user has it

CSS: Using hsl variable in hsla?

Say I have a CSS variable for an hsl defined as such: --white-1: hsl(0deg 0% 100%); Now, I want to use that same white, but at 50% opacity. So, something like

Javascript / JQuery Contenteditable resize handles should set table column width parameter

I'm looking for a solution primarily supported by Webkit browsers (Chrome / Edge / Safari) that allows table columns to change the actual width of these columns

How to prevent an animation from pausing between keyframes and, additionally, make it run even when not on mouse hover

I have a two part question regarding a single code. I've been trying to make a text the letters of which will jump and flip on hover and so far I've managed to