All Questions
1,185,303 questions
Score of 2
1 answer
95 views
Unable to generate audio element on an HTML page using JavaScript
I'm trying to have an audio element/audio player be generated upon the user clicking a button, however upon clicking the button, nothing happens.
I've linked my main.js file in the header of the HTML ...
Score of 3
4 answers
120 views
Looping SVG as an <hr /> graphic
I created an SVG shape in Inkscape that I want to use as an <hr /> graphic. My hope is that by using an SVG, I can have it inherit the fill color from the current text color so that I don't have ...
Score of -5
0 answers
98 views
How does the javascript css div viewport know which html center is being displayed? [closed]
I am trying to understand if the browser javascript knows when the css has finished putting the div into the viewport center perspective.
For example if the html div is centered, is the center stored ...
Score of 1
1 answer
117 views
Flex items do not wrap around floated elements
Edit: To better illustrate the issue, I create an MRE. Under a normal layout, all three paragraphs wrap around the floated element.
.container {
width: 530px;
background-color: darkgray;
padding:...
Score of 0
0 answers
97 views
Android stripping geo-location from photos before upload in browsers
It seems like one of the latest Android updates has introduced a "privacy feature" that strips the geo-location from photos uploaded through a mobile browser like chrome or firefox. A ...
Score of -7
1 answer
135 views
Can users pretend they have a different location with navigator.geolocation or is it save?
I have been using IP addresses to find out the users current location, so I also had to check if they were on a VPN, proxy or tor to make sure I get the proper location now since this new update in ...
Score of -5
1 answer
123 views
What is the earliest point at which the browser calls requestAnimationFrame? [closed]
Browsers have a function called requestAnimationFrame.
I have the following questions about this function:
Does the browser call this function after it has fully rendered the entire page or before? ...
Score of 1
1 answer
121 views
How do I deploy a website using a separate CSS stylesheet?
I want to write a website in HTML using a separate stylesheet in CSS. When I open the index.html directly from my computer everything looks right, but when I commit + push it to GitLab and open my URL,...
Score of 1
1 answer
149 views
How to populate an HTML input value from a text file using JavaScript
I have 5 html inputs as below, I can load & display the detail of a text file as per image above.
host: 192.168.0.189
-port: 9000
username: wan
password: ssssssssssss
topic_p: tester
How can I ...
Score of 2
1 answer
129 views
Align all dates and names in a list
I'm trying to make a list of blog posts, with the date of the post before the name of the post. I've embedded it in a list, like so:
<ul>
<li>
<time>2020-01-01</time&...
Score of -4
0 answers
75 views
Content block builder [closed]
I have a question about the way how to organise the storing data for the pages across multiple different Server-Side Rendering (SSR) environments. I just want to have a single format of data and ...
Score of 1
1 answer
61 views
Scroll horizontal and vertical with scrollbars outside the content
EDIT: it seems the problem comes from firefox using overlay scrollbars that are on the content. Edge using normal scrollbars doesn't.
ORIGINAL:
I'm trying to have scrollable containers with the ...
Score of 1
2 answers
156 views
How can I customize keyboard behaviour in HTML select menus?
Is there an API that lets me decide how selecting via keyboard works in an HTML menu, or a way to hint about localization to the user agent?
The desired behaviour is often locale-dependent: for ...
Score of 1
1 answer
273 views
How to make an animated menu icon show/hide menu
I'm trying to make the animated menu icon open ☰ and close X the menu links. Instead of making two separate buttons, I can just code it in one button.
I've managed to give my menuIcon an onlick ...
Score of 0
0 answers
105 views
2-column flexbox layout without nesting divs
I'm trying to control the design of a page where I have no control over the HTML that's output, so my solution needs to be CSS only. The HTML I'm trying to style is basically the following:
<div ...