26 points

Still using vendor prefixes in 2023?

permalink
report
reply
11 points

http://shouldiprefix.com/#filters

Isn’t -webkit-filter still required?

permalink
report
parent
reply
13 points

https://caniuse.com/css-filters

It looks like not really anymore

permalink
report
parent
reply
4 points

Woah, TIL

permalink
report
parent
reply
5 points

No… My bad… Normally I use PostCSS

permalink
report
parent
reply
13 points

ok i know nobody cares but thats not how the blur filter would look like and it triggers me

permalink
report
reply
6 points
*
Deleted by creator
permalink
report
reply
17 points
*

In HTML:

div class=“hands”>

In CSS:

.hands

A dot in CSS means you’re referring to an HTML Class. Note that this is different from the OOP Class in scripting languages. Think of HTML classes as classrooms. You can have multiple divs with the same class name, each will be affected when you style that class name. Just like students follow the same rule when applied to a classroom.

In some specific instances, ID is used instead of class. # is used in CSS instead of a dot. The only difference is that in ID, each element should have a unique ID.

div id=“right-arm”

CSS: #right-arm

permalink
report
parent
reply
6 points

To add onto this, you can also have:

<div> </div>

And style it with:

div { background-color: red; }

just using the html tags without a . or #

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
10 points

The language is CSS, the dot signifies that it’s the name of a class. So any HTML elements with the same class name will have those CSS styles applied to them

permalink
report
parent
reply
3 points

CSS class?

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.9K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments