← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Day 82: value processing

    This post differs from most of the other posts because it’s not about modern CSS, but about CSS fundamentals.

  2. On day 66, I’ve introduced you to individual transform properties.

  3. Day 80: container style queries

    Container style queries allow querying the computed values of a query container.

  4. Day 79: font-tech() and font-format()

    You can use the @supports rule to check whether a browser supports a specified font technology or font format. font-tech() The font-tech() function checks whether a browser supports the specified font technology.

  5. CSS color functions and custom properties

    I know I’m really late to the party, but I finally understood why people find color functions like hsl(), hwb(), or lab() so appealing.

  6. Day 78: container query units

    Container queries come with their own units.

  7. Day 77: block-size, inline-size, vi, and vb

    There are logical properties for width and height values. width and height The logical alternative for width is inline-size and the alternative for height is block-size.

  8. Day 76: overwriting colors in font palettes

    You can use the override-colors property to override colors in a font palette.

  9. Day 75: font palettes

    Apparently, multicolored typefaces on the web are a thing.

  10. Day 74: using !important in cascade layers

    In order to understand how !

  11. Day 73: size container features

    In my previous posts about size container features I’ve only used the min-width feature, but there’s actually more you can query. container-type: inline-size establishes size containment only on the inline axis.

  12. Day 72: the masonry-auto-flow property

    If you’re creating a masonry layout, the packing algorithm puts items into the column with the most space by default.

  13. A year in review: 2022

    I started my last year in review post with the words “2021 was wild!”.

  14. Day 71: the masonry keyword

    The masonry keyword allows you to create masonry grid layouts.

  15. Day 70: the defined pseudo-class

    :defined represents any element that has been defined.

  16. Day 69: width in container queries

    In a media query, it’s obvious what width means.

  17. Day 68: cascade layers and browser support

    Cascade layers are one of the most interesting and useful additions to CSS recently.

  18. Day 67: counting children

    There are a lot of interesting things you can do with the :has() pseudo-class.

  19. Day 66: individual transform properties

    From now on you can transform elements with the translate, rotate, and scale properties.

  20. Relative units used in container queries work differently than relative units in media queries.

  21. Day 64: the revert-layer keyword

    With cascade layers comes a new CSS-wide property value, revert-layer.

  22. There are several CSS-wide property values you can use to specify a particular defaulting behavior for a property explicitly.

  23. Day 62: the container shorthand

    On day 56 you've learned that you have to define a container-type when working with size containers and on day 59 you've learned that you can name containers using the container-name property.

  24. Day 61: color-scheme

    The color-scheme property allows you to indicate which color schemes an element can be rendered in.

  25. Day 60: the ::part() pseudo-element

    You can use the ::part CSS pseudo-element to style an element within a shadow tree.

  26. Day 59: naming containers

    When you add a container query, it will look for the nearest ancestor container, by default.

  27. Day 58: ordering nested layers

    On day 43, we've learned how to group layers and on day 46, how to order them.

  28. Restart

    Like many others, I’ve been thinking a lot about Twitter, social media in general, and what being on a social media platform means for me.

  29. Day 57: media queries: range syntax

    With CSS Media Queries Level 4, it's possible to use mathematical comparison operators in media queries.

  30. Day 56: container queries

    You can use media queries to style elements based on features of the browser viewport, for example, min-width, max-height, or orientation.

  31. Day 55: anonymous layers

    In all previous posts about cascade layers I’ve used named layers in the demos, but it’s actually not required to name them.

  32. Support for a CSS property isn’t the only thing you can check with @supports(), you can also check support for a selector.

  33. Day 53: disabling pull-to-refresh

    On day 47, I introduced you to the overscroll-behavior property, and I showed you how to use it to disable scroll-chaining.

  34. Day 52: declaring multiple layer lists

    On day 46, I’ve explained how you can order layers by defining them in a comma-separated list first.

  35. Day 51: aspect-ratio and replaced elements

    Most elements have no preferred aspect ratio.

  36. Day 50: :has(:not()) vs. :not(:has())

    Something I was tripping over when I began learning about :has() was the combination with :not().

  37. Day 49: layering entire style sheets

    You can use @import to load entire style sheets into a cascade layer.

  38. Day 48: inset 0

    On day 9 I’ve talked about the inset shorthand properties inset, inset-inline, and inset-block.

  39. Day 47: the overscroll-behavior property

    You can use the overscroll-behavior property to disable scroll-chaining.

  40. Day 46: ordering layers

    By default, cascade layers are stacked in the order they are defined, but you don’t have to rely on it.

  41. When you pass an element to a web component through a <slot>, you can select that element using the ::slotted() pseudo-element and apply additional styles.

  42. Day 44: logical floating and clearing

    Thanks to Flexbox and CSS Grid no one seems to talk about float and clear anymore,…except for me now because there's news.

  43. Day 43: grouping layers

    Cascade layers can be grouped by nesting layer rules.

  44. Day 42: aspect-ratio

    Yes, I know, aspect-ratio is not the hottest shit, but Safari only starting supporting it in version 15 and there’s a lot I didn’t know about the property.

  45. Day 41: custom properties and url()s

    Let’s say you want to swap the background image of an element based on a certain condition, like whether it’s pressed, using custom properties. button { --background-image: "/not-pressed.svg"; background: url(var(--background-image)); } button[aria-p…

  46. Day 40: unlayered styles

    On day 37 we learned that we can get more control over specificity by creating layers.

  47. On day 11 I've introduced you to space-separated functional color notations.

  48. Day 38: vh, svh, lvh, and dvh

    Using the viewport unit vh in desktop browsers is usually straight-forward, 100vh matches the height of the viewport.

  49. Day 37: cascade layers

    Cascade layers introduce a new way of managing specificity in CSS.

  50. Day 36: :has() and pseudo-elements

    We already know that we can select an element based on the presence of a certain child element (in Chrome/Edge 105+ and Safari 15.4+), but there are limitations.