1,185,121 questions
Score of -1
0 answers
52 views
img outside of parent div
I seem to be having issues with making <img>'s properly fitting into their parent divs. I've tried the max-width, height, display, and object-fit fixes, but it still doesn't work.
I was ...
Score of -3
0 answers
57 views
Trying to make an image fixed to the top of the page [closed]
I have an image that's supposed to go at the top of the page only because it's blocking links from being clicked and just generally doesn't look good. I've tried googling it but I can't find anything.
...
Score of 2
2 answers
89 views
Elements in nav bar overlapping on zoom
The elements in my navigation bar overlap when I zoom in.
This is the appearance I want in all zoom levels:
Desired appearance:
Appearance on zoom over 100% on my computer:
I have tried lots of ...
Score of 3
3 answers
100 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
111 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
165 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
162 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
90 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
168 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
334 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
178 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 ...