SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to CSS@programming.devEnglish · 17 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 · 17 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.
  • lambalicious
    link
    fedilink
    English
    arrow-up
    4
    ·
    17 days ago

    Isn’t :heading literally not supported anywhere?

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

      yep

    • codeinabox@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      16 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
        link
        fedilink
        English
        arrow-up
        1
        ·
        16 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
          ·
          16 days ago

          Do you mean features only currently available in Chrome?

          • lambalicious
            link
            fedilink
            English
            arrow-up
            1
            ·
            16 days ago

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

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

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

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.

  • 6 users / day
  • 19 users / week
  • 107 users / month
  • 233 users / 6 months
  • 3 local subscribers
  • 737 subscribers
  • 183 Posts
  • 124 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org