All Questions
Tagged with javascript css
221,274
questions
0
votes
0
answers
10
views
Data resolution are not changing when try to minimize the resolution
In Firefox browser, when opened in normal form all data moves towards right, while it appears correctly in Chrome and Edge. Also when I tried to minimize the resolution in edge or chrome all data ...
1
vote
0
answers
23
views
Detecting CSS @scope support with JavaScript
Is there a way to detect @scope support via JavaScript?
I've tried: CSS.supports('@scope') or CSS.supports(':scope') but both of those are returning false in browsers that do support it.
I tried CSS....
0
votes
0
answers
26
views
How to use event.target.closest for navbar html javascript css?
I'm making a navbar. On click of items which has subnav pages, the navigation item/expands or collapses.
Here's the HTML/JS/CSS snippet.
const navHasChilds = document.getElementsByClassName("...
0
votes
0
answers
13
views
How to debug scroll event fired a lot later than the pointermove event?
With Chrome's 20x slowdown + device emulation, you can see that the first scroll event occurs 230ms after the first mousemove event:
On Android (a flagship 2023 phone), without any artificial ...
0
votes
0
answers
16
views
Image as background of data labels i.e as background color in chart.js [closed]
Is there any way to add image as background color i.e different image for background of each data label. If there is please let me know.
I tried doing it by putting images in an array and equating it ...
-1
votes
0
answers
15
views
Select Multiple area on image using drag and create hotspot in angular 8/ javascript
Hi all,
I want to implement a feature where user can select multiple rectangular area on image and create hotspot.
Once user click and drag from one position to second position it will draw like ...
0
votes
1
answer
74
views
Button adding event has no effect
I am studying html, css, and js.
Add click events to the arrow buttons of flickity,
I used addEventListener. However, I got the following error.
TypeError: Cannot read properties of null (reading '...
0
votes
0
answers
31
views
Does having elements in the DOM with `display:none` makes the browser slower?
I am not a good JS programmer and I dont know for sure how to profile this specific case. In a page I have 100 divs (all of them are visible and occupy space in the screen) and below each visible div ...
-2
votes
0
answers
34
views
How to refer to a CSS file using javascript? [closed]
I want to be able to access and change a css file through a javascript file. I am using tampermonkey and can't edit the css file directly.
I've looked up this problem and everyone keeps describing ...
0
votes
3
answers
32
views
text-overflow ellipsis doesnt with symbol !!! when using with webkit
i have a css as below
div.b {
white-space: nowrap;
width: 50px;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid #000000;
display: -webkit-box;
-webkit-box-orient: vertical;
...
0
votes
3
answers
31
views
Custom Two Column Layout
I have a problem with my display of two columns in my HTML code.
Top part of the two columns:
Space on the 1st column, the paragraph on the 2nd column was pushed down due to the image:
Here's my ...
-3
votes
0
answers
23
views
How to make something save/automatically change 24 hours [closed]
I'm making a website and one of the components is that the text within an element automatically changes every 24 hours, and it stays that. How do I achieve this?
I am expecting it to automatically ...
0
votes
0
answers
36
views
Problem with CSS :valid pseudo-class and required input
I am learning front-end and PHP. I was able to come up with this little form behaving almost perfectly the way I want it.
The problem is, some inputs are not required, that being the case, they are ...
0
votes
4
answers
52
views
How to break a flex into new row for dynamic data [closed]
I am working on a video calling application using reactjs. LocalTile component contains video of local user and RemoteTiles is returning videos of all remote users. My desired layout is like for 3 ...
-6
votes
0
answers
24
views
Scorecard Project [closed]
I am teaching myself to code and having issues with a project I'm trying out. Essentially I'm trying to make a custom scorecard through javascript and am unsure of how to add two user inputted values ...