1,185,236 questions
Score of 1
0 answers
80 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
89 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 0
0 answers
115 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
95 views
HTML select element not allowing typing to select option because of list length
I have an issue that my option list for a select tag is too long, somehow that is preventing the ability to search within the options using the keyboard on a tablet.
I've used twig to limit the amount ...
Score of 2
1 answer
103 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
95 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
86 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
158 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
83 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
151 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
131 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 -6
0 answers
104 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
146 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> ...
Score of -4
0 answers
73 views
Window closing dilemma [closed]
I currently have a window with an iFrame that displays an html page (created as a report). If the user simply clicks the special Close button I have, it exits the window and erases the html file. ...
Score of -2
1 answer
105 views
How do I show the header logo and footer when I open a full-screen nav menu? [closed]
I'm making my site responsive and, for the mobile version, I'm doing a full screen menu with a X button to close the menu. However I want my header logo and footer to also show when I open the menu. ...