All Questions
509,639
questions
-2
votes
0
answers
10
views
How do svg Images stretch and fill?
I'm writing an html with a temperature indicator here. I've tried a lot of things. I'm using an svg graph with a size of 500px by 20px. I allow it to stretch because it's just a gradient color, but I ...
0
votes
0
answers
6
views
Where to host video to preserve aspect ration/size (.mp4)
I have a React web application where I'm trying to display a .mp4 video. My current setup looks like this:
<div className="title-main-cont">
<div ...
-1
votes
0
answers
21
views
how to make the moon appear in the header too? [closed]
my header is cutting off my background image how to fix it?
*{
margin:0;
padding: 0;
list-style: none;
text-decoration: none;
font-family: 'Times New Roman', Times, serif;
box-...
0
votes
0
answers
29
views
How to implement zooming a canvas centered on the mouse
Thanks to the Zoom/scale at mouse position question, I implement my zoom/scale canvas. However when handling zooming in and out, this code was used:
offset.x = e.offsetX - (e.offsetX - offset.x) * ...
-1
votes
0
answers
17
views
Bootstrap 5 multiple card slider affiche une seule card au lieu de 4 [duplicate]
I am working on an angular 17 web app and using bootstrap 5 to create multiple cards in a carousel. Unfortunately it's just showing 1 card instead of 4.
The result i am expecting will look like this : ...
0
votes
0
answers
30
views
block printing pdf in css
I'm trying to block webpage printing by adding following css to webpage head section:
<head>
<style type="text/css">@media print { @page { size:auto; margin:.5rem 0; ...
0
votes
1
answer
40
views
How can I measure the size of a webpage in different devices?
I'm new with html and css, I'm wondering how can I measure the dimension of a webpage by pixels, is there any specific way like special code or app that I can use?
I tried searching but I somehow can'...
1
vote
1
answer
30
views
Why does a div with display: block (default) not expand to vertically fit an image without overflow but changing it to display: inline-block does? [duplicate]
I have a div with a background color via background-image:linear-gradient, and with the div's default display as block it doesn't expand vertically to fit the image, the image overflows over the ...
0
votes
1
answer
31
views
Unable to type texts to chatbot user input
Description
I am trying to add a chatbot for the backtesting platform built with Flask and there is a button on the right side that toggles the sidebar. If the user clicks the button, it shows the ...
0
votes
0
answers
22
views
Implementing Background Colors in Bootstrap vertical tabs and forms
In working on a project recently, I have noticed that I am limited to backgrounds solely outlined in bootstrap files and sites. I want it to match the existing color of the background according to my ...
-1
votes
4
answers
37
views
Why isn't the following text being collapsed into a ellipsis?
This is the code:
<div class="grid w-full gap-4 grid-cols-8">
<div class="flex w-full flex-col gap-1 justify-center items-center max-w-small cursor-not-allowed"><...
0
votes
1
answer
41
views
how to show select option list on hover?
<div className="rating-option">
<select
id="rating"
className="rating"
value={...
1
vote
1
answer
16
views
Why does backdrop-filter: blur break whenever unrelated elements are animated
I'm building a website, and use the backdrop-filter: blur(12px) CSS effect on my navbar. Whenever I created a CSS animation to animate the text on my page, the blur filter disappeared. This affected ...
-1
votes
0
answers
39
views
How can I fix this background image [closed]
I need help, I got this website and I need to put some images on the background, but the image overflows and it creates a white space, I have been researching but I don't know what can I apply
This is ...
0
votes
0
answers
45
views
The Enter key works every time I call addEventListener ("click")
I'm trying to make a calculator, and in the middle of the coding, I see that when I press the enter key, he calls the last addEventListener ("click") I used, but I don't set any work for the ...