Category "css"

Grid Items overflow out of parent container using CSS Grid

I am currently dealing with an issue with grid items overflowing the parent container. I'm not sure how to rectify this issue. If I resize the viewport the form

Remove border color for navbar-toggler Hamburger icon in Bootstrap using CSS

I've been stuck in this for a long time. Searched and tried many ways to remove the border color for the BS4 hamburger icon when clicked on it (in my local, it

With the use of css 3d transforms and perspective, I can't interract anymore with clickable elements in Firefox, but it works in chrome/Safari

I am building a simple page with paralax, using css 3d transforms. In chrome, everything works fine. In firefox, the parallax effects works well, however, I can

How can I create a Bootstrap popover from Javascript?

I am creating a page with a series of analog clocks that can contain meetings (if there is a meeting, that period of time is highlighted blue on the clock), whe

Pseudo element overlaps child element

Fiddle! .wrapper { justify-content: center; display: flex; background: black; } .outer { text-decoration: none; display: inline-bl

I want the text to shrink as the image shrinks. e.g. maintain the same ratio in size relative to the image

I want the text to shrink as the image shrinks. e.g. maintain the same ratio in size relative to the image. I've tried making the text disappear but it simply

Visual Studio Code Intellisense for style CSS in React?

Is it possible to get autocomplete or suggestions or intellisense or something for CSS when developing in React? For example, when I write something like th

Why is my 2nd div have different size from the other? They all have the same container-fluid class

In the HTML snippet below, I'm using Bootstrap and all three child divs have the same container-fluid class but why is the 2nd div different from other? This is

Shrinking sticky sticky header causes flicker in Blink/Webkit at certain scroll positions

I have a sticky header which utilizes IntersectionObserver to gain a class when stuck, which then hides a few elements and reduces the size of the logo. Of cour

Hexagonal CSS background

This is not a question about how to make an individual elements hexagon shaped. There are a lot of those. This is a question to see if there's a way to create

How to make Angular Material mat-select select list width automatic and adapt to the widest option?

Problem I have a Angular 6.1.10 web app. I want the width of the mat-select list options to be automatic and adapt to the widest option in the options list. See

How to fix viewport in place when virtual keyboard opens in mobile Safari?

Goal On mobile Safari, when the virtual keyboard is open, the screen should render like this image: where: The navbar and the input are fixed in place The list

Resizing div to its container?

I have a square block of 100*100px, there is a container block that may be resized. I want to resize the inner block so it always be inside the parent without o

document.getElementById - dynamic use for using the same ID more than once

var img = document.getElementById('myImg'); var modalImg = document.getElementById("img01"); var captionText = document.getElementById("caption"); img.onclick

Input type="number" with pattern="[0-9]*" allows letters in firefox

So, all question is in the topic's title. Input type="number" with pattern="[0-9]*" works fine in Chrome, but allows letters in FF. Is there any way to fix it w

Background color in Inputs HTML/CSS

I want to change background color only in Inputs: Input1, Inputs2 doesn't have to change color But now they all change color input[type="time"], area { ba

textarea corner resize icon not hiding even when the popup above the textarea have large z-index..

I am working in a page, which contain textarea and a button, When click on button, i have to show popup. When popup is open, the textarea right-bottom corner r

W3C CSS validator is giving errors on @font-face unicode-range

Since few days ago W3C CSS validator started to be more strict and started to give errors on this type of CSS3 implementation (this type of CSS3 files are every

W3C CSS validator is giving errors on @font-face unicode-range

Since few days ago W3C CSS validator started to be more strict and started to give errors on this type of CSS3 implementation (this type of CSS3 files are every

Scroll Snap Breaks Smooth Scrolling

I am trying to make a page with scroll snap as well as smooth scrolling when you click on a link but scroll snap seems to break smooth scrolling. On iOS it brea