Category "css"

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

How to import internal css conditionally with javascript vuejs?

Currently, I have to import css file conditionally depend on which kind of browser users are using. To not making css file global, I have the following code:

Give a radio button a hidden text value through selecting an image that is stored with that name in the database PHP/Html

Hello infinitely more knowledgeable stack overflow community. I am trying to accomplish the following: There is this quick form a user fills out and part of tha

Blazor server not scaling (zoomed) on mobile

I made a small sensor application in Blazor server. However, when I view the app on my phone, it shows these scrolling bars (I always need to pinch/zoom out my

Change Multiple CSS property from multiple CSS class dynamically in Angular

In angular, we can easily change the property of a CSS class dynamically, like if I have a class .my-class { background: url('..') } and if I used my-class a

How to move Material UI tabs to the bottom of a parent like AppBar?

If you have <Tabs that are inside an AppBar, what would be the best practice for having the tabs at the bottom of a parent, so like at the bottom of the head

Three columns with equal height corresponding rows in each column

I need to create a layout in which you have three columns, in each column the corresponding row needs to have the same height. The requirements for this are. T

Change the on-grid position of an element with javascript

My code is the following : <!DOCTYPE html> <html> <style> #1 { grid-area: 1; } #2 { grid-area: 2; } .grid-container { display

Is there a way to list all available css classes for a web page?

I was wondering if there is an easy way to list all available css classes loaded withing a single html page in javascript or through the developer console in ch

Defining a border width in PX vs EM on a responsive design

My entire stylesheet is all done using em instead of px. The entire theme is responsive. The only thing that I have seen I would like to change to px is with a

Why don't flex items shrink past content size?

I have 4 flexbox columns and everything works fine, but when I add some text to a column and set it to a big font size, it is making the column wider than it sh

How to dynamically add a class to manual class names?

I need to add a dynamic class to a list of regular classes, but have no idea how (I'm using babel), something like this: <div className="wrapper searchDiv {

Add custom style inside DataGrid Toolbar's popup component Material-UI

I'm creating a custom Data Grid Toolbar component by modifying existing Grid Toolbar components from Material-UI. Here is the official example for the Grid Tool