About 25,800,000 results
Open links in new tab
  1. What does the ">" (greater-than sign) CSS selector mean?

    Jul 12, 2010 · 63 > (greater-than sign) is a CSS Combinator (Combine + Selector). A combinator is something that explains the relationship between the selectors. A CSS selector can contain more than one simple selector. Between the simple selectors, we can include a combinator. There are four different combinators in CSS3: descendant selector (space) child ...

  2. 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?

  3. 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?

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

    May 9, 2010 · CSS "and" and "or" Asked 15 years, 2 months ago Modified 5 months ago Viewed 342k times

  5. How to stretch div height to fill parent div - CSS - Stack Overflow

    Apr 7, 2011 · How to stretch div height to fill parent div - CSS Asked 14 years, 3 months ago Modified 2 years, 10 months ago Viewed 536k times

  6. css - Line break in HTML with '\n' - Stack Overflow

    Sep 5, 2016 · Learn how to create line breaks in HTML using '\n' and CSS techniques on this Stack Overflow discussion.

  7. css - How to override !important? - Stack Overflow

    Jun 24, 2012 · Simply add another CSS rule with !important, and give the selector a higher specificity (adding an additional tag, id or class to the selector) add a CSS rule with the same selector at a later point than the existing one (in a tie, the last one defined wins). Some examples with a higher specificity (first is highest/overrides, third is lowest):

  8. What is the difference between margin and padding in CSS?

    Feb 3, 2010 · The biggest difference between padding and margin is that vertical margins auto-collapse, and padding doesn't. Consider two elements one above the other each with padding of 1em. This padding is considered to be part of the element and is always preserved. You will end up with the content of the first element, followed by the padding of the first element, followed …

  9. 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 extremely simplified example. Note - this technique can only be applied in an hierarchy and not within the same element to style itself according to its own properties.

  10. css - @Media min-width & max-width - Stack Overflow

    The underlying issue is using max-device-width vs plain old max-width. Using the "device" keyword targets physical dimension of the screen, not the width of the browser window. For example: @media only screen and (max-device-width: 480px) { /* STYLES HERE for DEVICES with physical max-screen width of 480px */ } Versus @media only screen and (max-width: …