1,185,117 questions
Score of 0
2 answers
120 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 -1
2 answers
126 views
How to ignore or negate CSS class if other class does not exist?
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
85 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 -5
0 answers
108 views
Prevent Google Translate from translating specific content [duplicate]
I am developing a web application using Next.js 16.4.0 and React 19. I want to prevent Google Translate from translating specific parts of my page, such as brand names and technical terms, while ...
Score of -4
0 answers
165 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
224 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
329 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
133 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
129 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
131 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
176 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 11
3 answers
574 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
116 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
114 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 ...
Score of -3
1 answer
166 views
How to get a value generator to produce a non-variable value I can still use in CSS?
I have a program to create new rows on a table when a button is pressed. The background color of a cell is using the product variable from a random hex code generator. The variable is needed because ...