All Questions
1,185,363 questions
Score of 2
1 answer
97 views
Avoid synthetic sounds overlapping
I have the following simple program in HTML and JavaScript:
<body>
<div id = "button-container" class="synth">
<button class = "note" id = "...
Score of -2
0 answers
72 views
Force a format for input type="date" regardless of locale
The admin section of our site has a mix of American and British users, who are sometimes located in each other's locales. For date chooser inputs, I have previously used the datepicker JavaScript ...
Score of -3
2 answers
160 views
How do I make it so that the script responds differently for each element?
I'm trying to make it so that each button opens up a different dialog box.
The script I use only allows for one dialog box, but not the other.
<html>
<style>
body{
...
Score of -3
0 answers
84 views
How to enforce propagation of iframe wheel (scroll) events to parent [closed]
When using an iframe, I noticed that scrolling behaves differently when the mouse is hovering over the iframe.
What I would expect is that if the iframe has nothing to scroll (iframe has the same ...
Score of 0
1 answer
69 views
How do I disable the default iOS form styling in place of my CSS?
I'm trying to customize some form elements (input, button, select, etc.) with CSS to apply a glassmorphism effect, although it appears that on iOS a white background is slid under it which makes all ...
Score of 2
1 answer
103 views
In an HTML table, what's the use of the scope attribute for <tr>, <tg>, and <td>
the Mozilla developer network's article on <th> says that scope "Defines the cells that the header (defined in the <th>) element relates to".
What does it mean for a cell to be ...
Score of 1
0 answers
55 views
EleventyImageTransformPlugin images are not stored and referenced at the same place
We are using eleventy and its image plugin to display images. The content is markdown converted with MarkdownItFootnote, e.g:

In our local ...
Score of 0
1 answer
105 views
ASP.NET Core MVC displays bool as text not checkbox
I have a project in ASP.NET Core MVC. In this project there is a model with property type bool.
In the model class, I have this property:
public bool? IsConfirmed { get; set; }
The scaffolding ...
Score of -4
1 answer
112 views
CSS for display with flex across multiple browsers? [closed]
I'm using flex for a drop-down menu. I want the desktop display to be as viewed on Firefox, to be the same on other browsers (Chrome, Safari, etc.) Hamburger menu displays fine on all mobile ...
Score of 2
1 answer
143 views
I want to filter the class but got error .filter is not a function [duplicate]
I got a div in JavaScript, which has two classes one for category (specific for each) and one for CSS styling. I got that div correct div in .closest method but I want to fetch its category class ...
Score of 1
1 answer
163 views
How can different parts of a HTML Text node be formatted differently?
On this site, different parts of a simple <div> are rendered with different styles. Here is the <div>:
<div class="ods-price__value" data-v-b273d44f="">4.99*</...
Score of -4
3 answers
124 views
At what point does it become good practice to indent the content of a <p> tag? [duplicate]
So I know you can code text in HTML like this:
<p>Short text</p>
And for longer blocks of text, you'd indent everything inside the <p> tag, like this:
<p>
Okay just ...
Score of 0
0 answers
56 views
How to automatically change width of div based on number of certain children using no js [duplicate]
I feel like there should be a way to do this. How would I dynamically change the width of the #main based of the amount of .content? I believe I'd have to use :has() and the nth-child selector, as ...
Score of 2
1 answer
54 views
How to correctly implement JSON-LD LocalBusiness schema in HTML?
I'm adding structured data to a client's website to improve local SEO visibility in search results. Trying to implement the LocalBusiness schema using JSON-LD in the <head> of a static HTML page....
Score of -1
0 answers
110 views
Why does getComputedStyle for a 15px border-width return 14.5455px on 110% page zoom?
document.documentElement.innerHTML = '<body style="margin:0;border-top:15px solid black;"></body>'
getComputedStyle(document.body).borderTopWidth
'14.5455px'
document....