All Questions
522 questions
1
vote
1
answer
47
views
detect when horizontally animating element reaches center of viewport
Given an animating (transforming) row of images, detect when each one reaches the center so we can make some changes (e.g., adding styling like filter: grayscale)
I've enlisted IntersectionObserver ...
0
votes
0
answers
86
views
Why Isn't the Virtual Keyboard Appearing on Mobile Devices for My Keyboard Tester?
I'm a beginner working on my third or fourth project, and I'm encountering an issue with my keyboard tester application. The project is named KeyMaster, and it works perfectly fine on PC browsers for ...
0
votes
1
answer
64
views
How to recreate browser zoom in a react project
I'm searching for a zoom that works exactly the browser's zoom.
I've tried some but in the 3D viewer (three.js) the zoom is breaking the page.
I have to set the zoom at 80%, doing it directly from the ...
2
votes
1
answer
62
views
Is there a way to activate the printing header and footer using JS or CSS?
I've heard about @page in CSS, that can change margin, orientation, page break, but my question is: Is there a way to activate the "Headers and footers" option, for that when I open the ...
0
votes
0
answers
93
views
Firefox, JS, CSS - verticall scroll jumping when element outside of VP changes height
I have a weird issue with Firefox where it scrolls to bottom of the page if content that is outside of viewport changes height. it works without any issues on Chrome. I recorded the issue here https://...
0
votes
0
answers
40
views
Fullscreen menu disables the browser reload button
I'm trying to make a full screen burger menu. It all works, I just don't understand why if I try to reload the page using the browser button it doesn't work (the page isn't reloaded) while if I do it ...
1
vote
1
answer
77
views
How to get all applied CSS values to a web element at runtime in JavaScript?
My goal is to get all of the CSS attributes (and their corresponding values) that are being applied to a given web element at runtime. Specifically, I am coding in Java and using Selenium to run a ...
0
votes
0
answers
14
views
Having trouble injecting css highlights for specific strings with javascript [duplicate]
Still really new to coding in javascript and I'm not quite sure where I am messing up. I want the script to search for email addresses on a page and then highlight them according to if they are safe, ...
0
votes
1
answer
195
views
Clicking browser back button auto-activates event listener
I have a strange problem that only occurs in some browsers which I cannot find a solution to anywhere.
Here's the objective:
Make a simple page with a hyperlink.
When the hyperlink is clicked, a box ...
0
votes
0
answers
622
views
Largest Contentful Paint Issue
How to Solve the Largest Contentful Paint When the Slick Slider is on Top in desktop lcp is good but in mobile lcp is very bad around 40 to 50.
I am using this slick slider but I am not able to find ...
0
votes
0
answers
30
views
Unwanted spaces between div selectors after Zoom In in the browser
When I Zoom in the page in Chrome or Firefox there appear strange gaps between div selectors:
enter image description here
When Zoom level is 100% everything is fine.
How to fix this?
I want to remove ...
1
vote
1
answer
173
views
DIV inner scroll with mouse wheel doesn't trigger mouse event refresh
I know variations of this question has been asked, but I couldn't find neither a solution nor an explanation why this happens in those questions.
Consider a parent DIV with a scroll bar. And in that ...
-1
votes
1
answer
51
views
How to get an element's html from a page that represent the content as it is exactly including all the styles applied over it
I'm currently working on a project where I need to retrieve the exact HTML of a form, including all the applied styles (CSS). My goal is to mimic the behavior of Google Forms, which sends a response ...
0
votes
1
answer
86
views
Why is Hindi Text not appearing correctly in safari?
I am trying to display hindi text. But its not loading correctly.
I tried to simply paste the text in a new file and it is working, what might be the case that in this case it is not working?
The ...
1
vote
1
answer
103
views
mirroring every second line of text paragraphs (boustrophedon)
Every time we read a line and come to its end our eyes have to pause and jump to the start of the next line.
If we alternate the direction of writing between normal and horizontally mirrored we can ...