I am in search of a counterpart to @supports
specifically for at-rules. I desire the ability to execute:
@supports (@counter-style) {
things
}
My goal is to achieve this using only CSS/HTML. Can anyone guide me on how to accomplish this task?
I am in search of a counterpart to @supports
specifically for at-rules. I desire the ability to execute:
@supports (@counter-style) {
things
}
My goal is to achieve this using only CSS/HTML. Can anyone guide me on how to accomplish this task?
Looking ahead, in the distant future:
A recent meeting of the CSS Working Group focused on detecting features for descriptors and reached a consensus on the following resolution:
RESOLVED: Introduce an
at-rule
function with syntaxat-rule(@keyword)
orat-rule(@keyword; descriptor: value)
https://github.com/w3c/csswg-drafts/issues/2463#issuecomment-1016720310
This will allow you to utilize:
@supports at-rule(@foo) {
/* @foo is supported */
}
However, this functionality is not available currently nor in the near future.
Currently, I am undertaking a project that involves converting a dynamic website like Adobe Spark into a static HTML+CSS page, which will eventually be transformed into a PDF. The interactivity of the website relies heavily on Javascript modifying CSS+HTML ...
The code I have is as follows: $('.signup-form-wrapper').css("style", "display: block"); $('.login-form-wrapper').css("style", "display: none"); I'm not sure why it's not working. The current appearance of ...
I'm trying to use the Bootstrap 4 card element to create a grid of images with overlaid headings, but I'm having trouble linking the image itself. I attempted the stretched link method without success. I also tried placing the entire card in an ...
After making the decision to dive into the world of Javascript, I've been dedicated to perfecting a script that will encase empty elements with a border right before the user submits a form. My ultimate goal is to implement live validation in the form ...
In the button, the datePick string is a computed property that can be clicked on to trigger an event. However, clicking outside the datePick value inside the button does not trigger the event. Even after wrapping it inside a span and setting width: 100%, ...
I've encountered an issue where the CSS on two pages, with slight color changes, is behaving differently in terms of grid layout. Despite multiple attempts to troubleshoot by adjusting items, grid-template-layout, and other parameters, the issue persi ...
Having trouble getting the navigation bar to open. I have set it up so that when clicked, it should remove the hide-links tag, but for some reason, it does not toggle properly and keeps the ul hidden. import React from "react"; import { NavLink } ...
Looking to enhance my tooltip using the Chakra UI library by adding an image/icon directly into it. Instead of just displaying the label, I want the MdWarningAmber Icon to be visible within the tooltip itself, rather than next to the button that triggers t ...
I am attempting to center my search bar when it is collapsed. Currently, it appears like this: As you can see, the links are centered, but not the search bar. This is the existing HTML structure: <!-- Navigation Bar Start --> <div class ...
First time diving into bootstrap and struggling with my items overflowing the container. Here's a snippet of my code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equi ...
Hey there! I was trying to bring in a custom font with vite and came across this handy plugin called vite-plugin-fonts. I set it up like this: import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import * as pa ...
Is there a way to display text on a fullscreen video in HTML? I have tried using absolute positioning for the text and relative/fixed/none positioning for the video, but it does not work when the video is in fullscreen mode. I also attempted to call the ...
I've been trying to use examples from the web, but I just can't seem to get it right. Who better to ask than you guys? I want to evenly distribute id="klip". I have set their widths to 18% so that each space is 2%. Here's how it looks now: ...
Could someone explain why a div with display: inline-block aligns differently when there is text or another element inside it? I know that vertical-align can fix this issue, but I'm curious to understand how the browser makes its decision on how to di ...
In my React App, I am utilizing flexbox and React Material to align the searchbar and clear button on the same line with space between them. Here is the link for reference: CLICK HERE <div className={classes.searchBarSection}> <Paper com ...
I encountered a cross-browser issue where a line in a narrow column breaks too early even though there is space left for the last word to fit perfectly. Initially, I suspected a problem with my stylesheet, but the same issue persisted in a simple fiddle I ...
Implementing ngInfiniteScroll for endless scrolling on my website has required me to set the height of the outer div to a specific value. Without this adjustment, the Infinite Scroll feature activates unintentionally. <div style="height: 1px"> &l ...
content: string; this.content = "There was an issue processing your request. Please try using the browser back button."; .content{ white-space: pre-line; } <div class="card-body text-center"> <span class="content"> {{ content }} </span& ...
When I apply the text-indent property in CSS, my expectation is that when the focus is on the text input area, the text cursor icon/caret will appear indented. However, it seems like the indentation does not take effect until you type the first character. ...
I have developed a basic calculator application using HTML, JavaScript, JQuery, and CSS. My intention is to allow others to embed this calculator app on their own web pages by utilizing a file named generate.js. Within this file, there are several documen ...