tchncs
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to CSS@programming.devEnglish · 8 days ago

Style Headings using the CSS :heading pseudo-class

www.alwaystwisted.com

external-link
message-square
8
link
fedilink
9
external-link

Style Headings using the CSS :heading pseudo-class

www.alwaystwisted.com

codeinabox@programming.dev to CSS@programming.devEnglish · 8 days ago
message-square
8
link
fedilink
Use the :heading pseudo-class to style all headings (h1-h6) with a single CSS rule. Reduce repetition in design systems and component libraries while maintaining consistency.
alert-triangle
You must log in or # to comment.
  • lambalicious@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 days ago

    Isn’t :heading literally not supported anywhere?

    • briggsyj@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      8 days ago

      yep

    • codeinabox@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 days ago

      Well spotted, the article states:

      The :heading pseudo-class is currently available in nightly builds only. You can test it now in:

      • Firefox Nightly (behind a flag)
      • Safari Technology Preview
      • lambalicious@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 days ago

        Yeah it’s pretty weird.

        I’m getting the impression this sub is getting spammed with Google-promoting or nothing-burger posts these last few weeks.

        • codeinabox@programming.devOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 days ago

          Do you mean features only currently available in Chrome?

          • lambalicious@lemmy.sdf.org
            link
            fedilink
            English
            arrow-up
            1
            ·
            8 days ago

            Same difference. GoogleCSS, if you’d want to be brief.

            • codeinabox@programming.devOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              7 days ago

              However in this case the opposite is true, as Chromium currently doesn’t support this feature.

  • geoff@midwest.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago

    I love this so much.

CSS@programming.dev

css@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !css@programming.dev
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 5 users / day
  • 23 users / week
  • 108 users / month
  • 226 users / 6 months
  • 7 local subscribers
  • 722 subscribers
  • 176 Posts
  • 134 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org