All Questions
1,186,295 questions
0
votes
0
answers
17
views
Template literal variable missing in alert() output within inline onclick handler [closed]
I am building a simple Rock Paper Scissors game using HTML and JavaScript. I have my JavaScript logic inside an inline onclick attribute on a <button>.
When I try to output the result using an ...
-2
votes
0
answers
21
views
Layout issues caused by the overflow how to overcome it need ideas
This is my code for a hovered state:
<div className="relative max-h-50 overflow-y-auto">
<ul className="grid grid-cols-7 gap-3">
{table.map((t) => (
...
Advice
0
votes
2
replies
25
views
How to improve initial load performance in React for content-heavy website?
I’m building a learning platform using React and facing slow initial load times due to large content and components.
What are the best ways to optimize performance (lazy loading, code splitting, etc.)?...
Best practices
1
vote
2
replies
49
views
Want to write online service for board games as my diploma in University
I`m big fan of board games, and when professor ask what I want to write as a diploma, I make decision fast - service for online board games.
Now I have some questions, which I don't know how to ...
Advice
0
votes
1
replies
10
views
How to fix meta description not showing in WordPress?
I added a meta description to my WordPress site, but it doesn't appear in Google search results.
I already:
Added meta description in SEO plugin
Cleared cache
Checked source code
But Google still ...
0
votes
2
answers
75
views
Number formatting with 2 decimal places on a textbox populated by a variable [duplicate]
I can't seem to be able to force two decimal places on the end result of the 'unloadedtotal' textbox after clicking the calculate button. I only know of '.force(2)' but can't get it to work no matter ...
3
votes
1
answer
67
views
How do i make the slider thumb go over the actual bar in CSS / Javascript?
As you can see in the image the thumb stays below the border of the slider, how do i make it so it stays on top and you can't see the border below the thumb anymore?
and is there a way to reference ...
0
votes
0
answers
50
views
table-options Attribute: data-header-style="headerStyle"
I use table-options Attribute: data-header-style="headerStyle", In the example classes: 'my-header' does not work
I used the following code from https://live.bootstrap-table.com/ , and it ...
0
votes
0
answers
50
views
canonical link for paginated page is not correct
Wordpress automatically adds the canonical link. I noticed, that for a paginated page the link is not correct. For instance with url:
https://example.xy/page/2
the canonical link in the head section ...
Advice
0
votes
1
replies
51
views
Why does the browser apply a style to element (nesting selector)
I have a question about the MDN example (https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Nesting/Using#example_3):
.card {
padding: 0.5rem;
border: 1px solid black;
border-radius: 0.5rem;...
1
vote
1
answer
72
views
Error code 153 when trying to use Youtube Embed | HTML
UPDATE:
somehow the embed shows up/works when I'd host the website on neocities but when I am checking the website locally it doesn't show up for some reason
When I try to use a youtube video embed in ...
-3
votes
0
answers
61
views
How do I choose a different font from the same family? CSS [closed]
What I got:
What I want:
@font-face {
font-family: 'OTR';
src: url('/fonts/OTRtypeGX.ttf');
font-variant: 'type2' ;
}
What I can do to change the variant? When I use this font in Photoshop, ...
-1
votes
3
answers
99
views
adding variables as numbers not working. looking for what I'm missing, not just what the answer is [duplicate]
I am stuck. I am trying to add two fields together. If I change the "+" to a "*" for multiplication, it sees the variables as number and multiplies them, but as is it sees them as ...
Tooling
0
votes
4
replies
91
views
Close modal on click outside or on the X icon
Learning JS here.
I have this function (Vanilla JS) which allows to access directly the opened modal when typing the url (when typing site.com/#modal-faqs it just shows already opened on the browser).
...
-6
votes
1
answer
109
views
How do I compose a base reference for my website?
I am rewriting my website. I have decided upon a structure for its directories, which on my local drive, appears as:
Additional directories will be created to contain specific content (e.g., Tools, ...