1,185,303 questions
Score of 1
0 answers
33 views
Input value for total number of pages in a REDCap survey?
I would like to build a progress bar for a multipage REDCap survey that uses javascript to draw the current page number and total number of pages values so I can calculate the percent for each page ...
Score of -4
0 answers
63 views
Excess empty space in web page [closed]
On https://www.nytimes.com/games/connections, once you click "Play" and see the game board, below the game board there is a massive swath of empty space. I want to write a userscript or a ...
Score of -7
0 answers
66 views
Image size fixed across all screen size [closed]
I want to implement an image property by which the image dimensions will remain same on all the screens from larger desktop screens to mobile screens.
Even if we zoom-in/out.
I tested my ...
Score of 0
1 answer
78 views
How to create a smooth sliding overlay sidebar in CSS without layout jitter and unwanted horizontal scrollbar?
I am building an overlay sidebar component next to a Leaflet/Mapbox map in a Rails application.
Requirements:
No Map Bounds Recalculation: The sidebar wrapper stays in the layout flow with a static ...
Score of -1
1 answer
74 views
HTML select element not allowing typing to select option because of list length
im having the issue that my option list for a select tag is too long, somehow the list being too long is preventing the ability to search within the options using the keyboard on a tablet.
ive used ...
Score of 3
1 answer
95 views
How do I move a grid in CSS upwards from the bottom of the page?
The problem I am facing is that my grid is placed at the bottom of the page, and I have been trying multiple tactics, including padding, to move it, but none have worked.
I really would like to get an ...
Score of -3
0 answers
88 views
How to capture original state of a container? [closed]
I'm building a feature where users can select a container (for example, a navbar) and preview different design styles using Next/Previous buttons.
Before applying any changes, I want to save the ...
Score of -4
0 answers
79 views
Dynamically inserting many <img> elements with JavaScript causes HTTP 429, but equivalent static HTML does not [closed]
I have a static website with a page containing roughly 60 cards. Each card has an image, and there are also Bootstrap modals containing additional images.
Originally, all of the cards and modals were ...
Score of 2
2 answers
154 views
Text alignment on a dynamically created HTML element via JavaScript not working [closed]
I have a <p> element which is dynamically created using JavaScript when the user presses a button on the site, and I want this element to be horizontally centered, however for whatever reason ...
Score of -2
0 answers
81 views
How can I quickly identify the font used on a webpage using JavaScript? [duplicate]
How can I quickly identify the font used on a webpage using JavaScript?
I’m building a small JavaScript utility for web designers and I want to identify the font being used for a particular piece of ...
Score of -7
0 answers
150 views
How to exchange usual html button with nice switch? [closed]
This simple code used to make images smaller / bigger by single button press and it works fine
I need to change that standard html button with nice looking switch, see the code:
// Select the button ...
Score of -6
0 answers
127 views
preg_match() not capturing obvious match [closed]
I have a variable which contains a string of cleaned HTML. When echo()ed, the string renders as proper HTML. It even renders when var_dumped()!
I need to look up the one div element that's just inside ...
Score of -4
1 answer
123 views
How can I recreate my background I envisioned [closed]
I am trying to recreate this background without AI, but struggling with how to do it. Right now I am using clip-path polygon but this doesn't seem like the right way. Anyone have ideas?
The image is ...
Score of -6
0 answers
101 views
Chromium print mode: text overflows when a rowspan cell spans multiple pages
When printing an HTML table in Chromium (e.g. using Ctrl+P), text inside a <td rowspan="..."> can overflow or be rendered outside the cell when the cell spans multiple printed pages.
...
Score of 0
2 answers
140 views
Switch to minimize some icons on page
I have this simple code which makes image smaller by button press.
This works fine, but with one image only - how do I make same button for many images?
I have tried to include a list of <img> ...