About 10,200,000 results
Open links in new tab
  1. What does the "~" (tilde/squiggle/twiddle) CSS selector mean?

    May 28, 2012 · Searching for the ~ character isn't easy. I was looking over some CSS and found this .check:checked ~ .content { } What does it mean?

  2. css selectors - What does "*" mean in CSS? - Stack Overflow

    * { margin: 0; padding: 0; } It is odd, as removing that block in chrome web developer tools doesn't affect the layout of the page. What does this code mean, and when is it used and why?

  3. css selectors - CSS "and" and "or" - Stack Overflow

    May 9, 2010 · Learn about CSS selectors, including how to use "and" and "or" for efficient styling on Stack Overflow.

  4. Can you use if/else conditions in CSS? - Stack Overflow

    Jul 15, 2009 · Update Jul 2023: Modern CSS now has @container queries support for size and soon also style & state, and that basically means a native way for an if/else condition. Below is …

  5. css - How to force image resize and keep aspect ratio? - Stack …

    background-position: center; } Now you can just set your div size to whatever you want and not only will the image keep its aspect ratio it will also be centralized both vertically and …

  6. Tailwind CSS v4 - Unknown at rule @plugin, @custom-variant, …

    Mar 17, 2025 · I'm using Tailwind CSS v4 in my Next.js project and getting the following errors in globals.css: Unknown at rule @plugin css (unknownAtRules) Unknown at rule @custom …

  7. html - Transparent CSS background color - Stack Overflow

    Jun 25, 2012 · I want to make the list menu's background disappear by using opacity, without affecting the font. Is it possible with CSS3?

  8. css - Media Queries: How to target desktop, tablet, and mobile?

    I have been doing some research on media queries and I still don't quite understand how to target devices of certain sizes. I want to be able to target desktop, tablet and mobile. I know that there

  9. CSS Child vs Descendant selectors - Stack Overflow

    CSS Child vs Descendant selectors Asked 16 years, 4 months ago Modified 2 years, 4 months ago Viewed 166k times

  10. css - How can I apply styles to multiple classes at once ... - Stack ...

    11 Using CSS pseudo-classes :is (previously :any and :matches) and :where, you can use comma to match multiple classes on any level. At the root level, :is(.abc, .xyz) and .abc, .xyz function …