About 14,100,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. In CSS what is the difference between "." and - Stack Overflow

    Mar 2, 2009 · What is the difference between # and . when declaring a set of styles for an element and what are the semantics that come into play when deciding which one to use?

  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. Tailwind CSS v4 - Unknown at rule @plugin, @custom-variant, @theme ...

    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-variant css …

  5. 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 an …

  6. css - How to force image resize and keep aspect ratio? - Stack Overflow

    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 horizontally within the div. …

  7. What is WebKit and how is it related to CSS? - Stack Overflow

    The -webkit prefix on CSS selectors are properties that only this engine is intended to process, very similar to -moz properties. Many of us are hoping this goes away, for example -webkit-border-radius …

  8. CSS: Creating textured backgrounds - Stack Overflow

    Aug 5, 2012 · Use an image editor to cut out a portion of the background, then apply CSS's background-repeat property to make the small image fill the area where it is used. In some cases, background …

  9. CSS Equivalent of the "if" statement - Stack Overflow

    19 CSS itself doesn't have conditional statements, but here's a hack involving custom properties (a.k.a. "css variables"). In this trivial example, you want to apply a padding based on a certain …

  10. css - How to disable text selection highlighting - Stack Overflow

    For anchors that act like buttons (for example, the buttons on the sidebar of this Stack Overflow page titled Questions, Tags, and Users) or tabs, is there a CSS standard way to disable the highlig...