1,185,118 questions
Score of 0
2 answers
47 views
How to center MathML's <math> in Firefox?
I'm struggling trying to center a MathML tag inside my website.
First I tried using padding + translateX() but the result wasn't optimal depending on the screen size.
After that, I thought about ...
Score of 3
2 answers
75 views
Why does clicking the icon inside a dynamically added button not trigger my delegated click handler, while clicking the button text does?
I am building a small task list where items are added with JavaScript. Instead of adding a click listener to every button, I added one listener to the list itself. Each item has a delete button with a ...
Score of 0
3 answers
154 views
How to smoothly animate container width/height when switching between slides with different text content without text reflow jumps?
I'm building an auto-rotating slideshow where each slide has a callout box with different text content. When transitioning between slides, I want the callout box to smoothly resize to fit the new ...
Score of -2
2 answers
147 views
How to ignore or negate CSS class if other class does not exist? [closed]
I have a class legend-symb that defines a box when applied to a <div>.
The contents of the box is defined by other classes added to the same element. The contents class names come from the ...
Score of 0
0 answers
89 views
How to do a vertical line at iOS at safe-area-inset-bottom but no scrollbar at Android?
I want to have a hairline at the full safe-area-inset at iOS.
But no scrollbar at Android.
I prefer a CSS-only solution.
I MAY do this server-level at selective serving.
html, body {
margin: 0;
...
Score of -4
0 answers
166 views
How to update files after hosting a new website on github? [closed]
I have added all my files on a repository in github, i have added my new domain which I purchased from GoDaddy, I use VS code but been trying to commit new updates on my website to update on to github ...
Score of 1
3 answers
225 views
How to align images on the same x
I have tried aligning images using <span>, and it was okay until I added text beneath the images. Now it's one under the other again. I want to achieve something similar to a photo below. Margin ...
Score of 5
1 answer
331 views
Why does my JS make the browser scroll to the bottom of the page when switching to a section that's taller than the window height? [duplicate]
Here's my JS:
function ClearPage() // unloads every page
{
document.getElementById('home').style.display = 'none';
document.getElementById('menu').style.display = 'none';
document....
Score of 4
1 answer
135 views
Div is expanding to fit content when I don't want it to
I have a <div> that is 95% the width of the screen, but for some reason when I add more content inside (more nav-links) it it expands horizontally to fit the content. I can't seem to find the ...
Score of -4
1 answer
131 views
Borders on html website/background image over smaller content area? [closed]
I've been building my personal website, and I wanted to have an image in the background with the main body/content of my website overlaid on top of it, but I haven't had any luck on it. I've found a ...
Score of 0
3 answers
136 views
How do I put buttons on top of a fixed picture?
I'm creating a website for school and I need buttons that lead to my other web pages but Im struggling to put my buttons on top of a fixed image (I would like the buttons and the image to be both ...
Score of -6
1 answer
177 views
Request for organic assistance debugging my fading-toolbar(JS)
I need help figuring out, why my navBar wont fade-out when I scroll down on my site. The site is approximately 500px deep and I have tried debugging all 3 files and don't have any error reports within ...
Score of 12
3 answers
594 views
How can I detect whether a font supports a specific Unicode character in JavaScript?
I'm building a web-based text/font tool where users can enter Unicode characters and preview them using different font families.
The problem is that not every font supports every Unicode character. ...
Score of 1
2 answers
120 views
Script executes before the HTML elements have been rendered in the DOM Even though I used `defer`
ProductsPage.cshtml :
@{
ViewData["Title"] = "Products page";
}
<h1>Products Page</h1>
<label for="avatar">Choose a file:</label>
<input ...
Score of 3
1 answer
116 views
Stop all sources from an array in Web Audio API
I am collecting all sound sources into an array so that I can stop them later. However, when I iterate through the array and call stop(), the sounds keep playing instead of stopping. Yet, if I call ...