807,167 questions
-2votes
0answers
15views
i want to center my footer but its not working?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Guide to help with Mental Health | Website&...
0votes
1answer
21views
Responsive sidebar filters overlay on mobile and static on desktop with Tailwind CSS & Alpine.js
I’m trying to build a self-contained example of an e-commerce “Product Search” layout where: On mobile (width < 768px) – the filter sidebar is hidden by default, slides in from the left over a ...
1vote
1answer
25views
CSS button color can't be override by parent
Consider the following HTML and CSS codes: <div class="red"> <button>Should be red</button> </div> .red { color : red!important; } I can't figure out why the ...
-1votes
1answer
36views
"Log in" button doesn't hide after registration or log in
I want to make the log in button disappear after you're signed into your account, but I can't seem to get it right. I've tried with localStorage and sessionStorage, but neither have worked. What am I ...
0votes
0answers
33views
Functions only working once/ for only one id at a time
I'm currently creating a Simple Pomodoro timer. I have a function to start the countdown, and it only works on the first 25 minute timer. When I use it for the others (break times), it does not work. ...
0votes
0answers
9views
How to make the width of element equal to the width of its containing text and still keep correct line breaks? [duplicate]
I am making a cover page and need to center align the content on the page. However, I wish for the text to be left aligned within the center aligned container. The problem is that the container (...
0votes
0answers
44views
How to prevent the form from being sent if the date the user gave is greater than the current date [duplicate]
If today is 04/27, the user can input today and previous dates but not 04/28. if today is 04/28, the user can input today and previous dates but not 04/29 and so forth. This is the form (without ...
0votes
1answer
31views
Variable in custom property
Is it possible to add variable to custom property in css? As task from work I need to add possibility of color changing to already existing element in application. Element is using custom property for ...
1vote
3answers
52views
why my display: flex wont work.. (HTML CSS problem)
Click here to see the preview enter image description here The "title" is rendered a little too high. As you can see in the code, I was using flex on titnav and mainnav, yet they won't align ...
0votes
0answers
22views
createTheme for theme.tsx has issue
This is in my theme.tsx: Const baseTheme: Omit< ThemeOptions, | “properties1” | “properties2” > export DarkTheme = createTheme({ …baseTheme, …themeDark, palette: { …baseTheme....
0votes
0answers
24views
How do I make Thingsboard Markdown html value function card responsive like the rest of default thingsboard value cards. I need it to be responsive
var totalTRH = 0; ctx.data.forEach(function(_data) { if (_data.data.length >= 1) { _data.data.forEach(function(value) { totalTRH += parseFloat(value[1]) || 0; }); } }); return ` ...
0votes
4answers
109views
How do I prevent the form from being submitted if there are errors present, and how can I delete the warnings when I press the reset button?
I have to make a form, validate it and if everything is OK, submit it (it doesn't have to go to a server). If not, the form is not sent and it indicates the errors. The form has both mandatory and ...
-2votes
0answers
22views
How do different browsers determine the baseline position for replaced elements like images? [closed]
While working with vertical alignment of images, I noticed that the CSS specification doesn't explicitly define how the baseline of replaced elements (like img, video, etc.) should be positioned. The ...
-3votes
0answers
20views
Curved HUD with CSS [closed]
I wondered if it is possible to distort a div with CSS to create a curved Heads up Display like in the screenshot? I am not aware of any curving transforms, but wonder if there are any tricks to ...
2votes
1answer
47views
I need CSS rules for theming where I want to show one theme inside another theme
Using following code: <body> <div class="style_a"> <div> <div>BLACK</div> <div class="text">RED</div> ...