← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 31
  1. A few fun nesting tips & tricks

    There are some handy things that you can do with nesting, espcially when you start moving the & placeholder around!

  2. One corner, two border radii

    Did you know you can control the border radius of both sides of a corner indepenently of one another?

  3. The picture element

    Sometimes, designs have different images for large and small screen layouts.

  4. Single-colour gradients

    It might seem strange, but single-colour gradients can come in handy in a few different ways!

  5. @property

    Register custom CSS properties with specific syntax to enable smooth animations and transitions.

  6. :nth-last-child

    Select elements by counting backwards from the end using the :nth-last-child pseudo-class selector.

  7. object-fit and object-position

    Crop images in a similar to way background images by using object-fit and object-position

  8. calc-size()

    We can now do calculations based on the intrinsic size of an element

  9. The ::selection-pseudo-element

    Add a little personality to your site by changing the selection styles

  10. The element

    Display calculation results and user interaction outcomes with semantic HTML using the output element.

  11. :first-child and :last-child

    Style the first and last elements in a group without needing extra classes or JavaScript.

  12. The datalist element

    Create autocomplete dropdowns with suggestions using the datalist element without JavaScript.

  13. :out-of-range

    A quick look at the :not-in-range psuedo-class.

  14. :placeholder-shown

    A quick look at the :placeholder-shown pseudo-class for styling form elements that are displaying placeholder text.

  15. interpolate-size: allow-keywords

    Animate and transition to auto, and other intrinsic keyword values.

  16. input type='color'

    Easily add a color picker to your page using an input with a type of color.

  17. :only-child

    Learn how to use the :only-child selector to style elements differently when they have no siblings.

  18. The min() and max() functions

    The CSS min() and max() functions can be powerful alternatives to clamp() for responsive layouts.

  19. The element

    When creating quotes in HTML, most people are aware of the element, but for shorter quotes you might want an inline element, and that is where the element comes in

  20. input type="number"

    Number inputs can be useful, but they aren't as straight forward as they might seem at first.

  21. The fieldset and legend elements

  22. :in-range pseudo-class

    Style inputs based on if the value is within specific range limits

  23. The search element

    A quick look at the search element, a semantic element for search and filtering

  24. The :has() pseudo-selector

    The :has() relational selector allows you to select parents of elements, but also preceding elements, siblings, and much more!

  25. Transitioning to and from display: none

    Two new CSS features, @starting-style and allow-discrete, making it quite easy to transition to and from display: none!

  26. The :focus-visible pseudo-class

    :focus-visible is an improved version of :focus, meaning we don't have to fight those focus rings

  27. Container query units: cqi and cqb

    Responsive units that respond to local sizes, rather than the entire viewport

  28. min-width: fit-content

    Text wraps, but only as a last resort!

  29. The :user-valid pseudo-class

    A new and improved version of :valid that only kicks in once the user has interacted with the field

  30. The element

    An underused HTML element for when we want to show keyboard commands and user inputs.

  31. The :empty pseudo-class

    We can use CSS to find elements that don't have any content in them.