Infosec.Pub
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Mac@programming.dev to CSS@programming.dev · 2 years ago

CSS variables

gomakethings.com

external-link
message-square
9
link
fedilink
13
external-link

CSS variables

gomakethings.com

Mac@programming.dev to CSS@programming.dev · 2 years ago
message-square
9
link
fedilink
Yesterday, I mentioned that I love CSS variables. Today, I thought I’d explain what they are and how they work, for those who aren’t already familiar with them. Let’s dig in! How to define CSS variables You define a CSS variable by typing its name with a leading double-dash (--). It uses the same syntax a typical CSS property—--{name}: {value}—and must be defined on an element. p { --size: 1rem; } You can then use your CSS variable just like you would any other property value by wrapping it in var().
  • stevedidwhat_infosec
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Seems like a cool website, added to my list thanks!

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.

  • 15 users / day
  • 67 users / week
  • 110 users / month
  • 216 users / 6 months
  • 3 local subscribers
  • 719 subscribers
  • 175 Posts
  • 116 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org