1,187,595 questions
-7
votes
0
answers
22
views
How to implement multiple JSON-LD schema types for a company website? [closed]
Body:
I’m adding structured data to my company website which provides digital marketing and web development services.
I want to include both Organization schema and Service schema in JSON-LD format.
...
0
votes
0
answers
20
views
Using width and height attributes with `contain-intrinsic-size` for img tag
I found an article about frontend performance with a current example for images:
<img
src="/images/hero.avif"
alt="Hero"
width="1200" height="800"
...
0
votes
1
answer
68
views
How to change the color of the icon in <input type='date'> and <select> elements using CSS?
I’m trying to customize the default icons of and elements using CSS.
For the date input, I want to replace the native calendar icon with my own SVG icon and change its color.
For the select element, ...
0
votes
1
answer
37
views
Streamlit textarea with live byte counter
I have a small problem in my application. I am currently working on a Streamlit app where I generate text via OpenAI. This text is displayed in a textarea for the user, and the textarea has a live ...
0
votes
0
answers
47
views
iframe to PHP file is downloading instead of displaying, can I display PHP inside an HTML iframe? [duplicate]
I'm developing a webpage that uses strictly PHP files because it's a lot of repetition and I wanted to use templates for my files. Unfortunately GitHub doesn't display PHP files like it does for HTML ...
0
votes
0
answers
76
views
User script append to DOM without having to reload page [closed]
I am working on a user script (I'm using Tampermoney as my user script manager) to append a dynamic Rotten Tomatoes link to a Jellyfin movies/series page.
It works when I manually reload on the title'...
1
vote
4
answers
72
views
How to rotate text, textPath svg, html
<svg style="z-index: 0;" width="800" height="400" viewBox="1400 -1300 700 200">
<g
tabindex="0"
role="button"
>
<defs>
<marker
id="red-arrowhead"
...
1
vote
0
answers
60
views
Text Cut Off and Extra Spacing When Exporting HTML to PDF with html2pdf
When exporting my HTML content to PDF using html2pdf, the text inside the element appears cut off and there is an unusually large space between elements. Specifically:
Inline-block elements (<span&...
-1
votes
0
answers
41
views
How to hide only the progress bar in YouTube IFrame (controls:1) and still allow quality selection? [closed]
I'm embedding a YouTube video using the IFrame Player API.
I want to hide only the progress bar (seek bar) but still allow users to change video quality via the gear icon.
I tried using controls: 0, ...
0
votes
0
answers
50
views
Dropdown Menu Positioning Issue in My Web Application [closed]
I'm experiencing a positioning issue with a dropdown menu in my web application. The dropdown (a standard HTML element) for the subject selection is appearing in the top-left corner of the screen ...
2
votes
3
answers
186
views
CSS Grid layout: items reorder unexpectedly — how to preserve DOM order?
I want to create a masonry style layout
Here is how i did it but it didn't work as expected:
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
background-...
-1
votes
0
answers
49
views
Custom font slows down website performance
I am creating a landing page with HTML, Tailwindcss (CDN)/css, and js. Since it is something simple, I decided not to use any framework such as NextJS for this.
I am trying to get a score of 100 on ...
-1
votes
0
answers
31
views
Problem with container media queries in css [closed]
I hope you can help me from the heart, I am learning a little about this world, I have the problem that in econtainer queries the container div has no effect when I apply it, and when I use other divs ...
0
votes
1
answer
77
views
Drawing a div overlay sometime gives offsets divs and sometimes positioned correctly
Note: I don't want to edit the css of the paragraph itself, but to add a new div, because I am not allowed to touch the site itself for the moment. (Also don't worry about the resizing/scrolling/...
-1
votes
1
answer
203
views
Is ":host::part()" a valid CSS selector?
When I asked Google AI it responded:
Why combining them is wrong
The selector :host::part() attempts to mix these two concepts incorrectly:
It tries to select an element with part="base". ...