Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ Five Underated CSS Properties You NEED To Try Out!

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Five Underated CSS Properties You NEED To Try Out!


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

Helloooo! Today I'm gonna be talking about 5 CSS properties (or actually 3 properties, and 2 pseudo classes), that I think deserve more love.

Table Of Contents

  1. accent-color
  2. caret-color
  3. ::selection (pseudo class)
  4. user-select
  5. :empty (pseudo class)
  6. Final Thoughts

accent-color

To start of, this is a great css property just to add a little bit of more detail to your user-interface. This property applies to the input types:

  • <progress>
  • <input type="checkbox">
  • <input type="range">
  • <input type="radio">

The accent-color property allows you to very set the accent color (what you often see in radio-buttons, checkboxes, etc) to whatever color you'd like!

Example:

progress {
  accent-color: red;
}

input[type=checkbox] {
  accent-color: red;
}

input[type=radio] {
  accent-color: red;
}

input[type=range] {
  accent-color: red;
}

Accent Color CSS Example

caret-color

While barley noticable, the caret-color works perfecly with the accent-color property, and is a very nice little detail you should consider adding and using.

Example:

input {
  caret-color: red;
}

selection (pseudo class)

While I know this is not really very unknown, I still don't see it used enough. The simple ::selection pseudo element can very easily spice up your website by changing the styles of selected elements.

Example:

::selection {
  background: red;
  color: white;
}

Selection Pseudo Element Example

backdrop-filter

Like the selection property, this might not be the most unnknown property, but I still don't see it used enough. The backdrop-filter property allows you to apply a variety of filters to the area behind an element.

Options:

  • blur()
  • brightness()
  • contrast()
  • drop-shadow()
  • grayscale()
  • hue-rotate()
  • invert()
  • opacity()
  • sepia()
  • saturate()

Example:

div.background {
  background: url(image.jpg) no-repeat center;
  background-size: cover;
  height: 100px;
  width: 100px;
}

div.filterbox {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: sepia(100%);
  width: 50px;
  height: 100px;
}

Backdrop Filter Example

empty (pseudo class)

The empty pseudo class matches every element that has no children. This can be either element nodes or text (includind whitespaces). A fun usecase for this is for example when image is loading.

div {
width: 60px;
height: 60px;
background: grey;
}

div:empty {
  border: 2px solid red;
}

Empty Pseudo Class Example

Final Thoughts

That's it for today's list, there are of course there are a lot more tha I haven't mentioned, but I appreciate you spending your time reading this post, if you'd like to read more here you go:

๐Ÿ”ฅ Goodbye Firebase, Hello SupaBase

๐Ÿ  Home Page

...



๐Ÿ“Œ Five Underated CSS Properties You NEED To Try Out!


๐Ÿ“ˆ 96.91 Punkte

๐Ÿ“Œ Mastering CSS Custom Properties: The Senior Developer's Approach to CSS Custom Properties.


๐Ÿ“ˆ 51.6 Punkte

๐Ÿ“Œ q4os is so underated!


๐Ÿ“ˆ 35.37 Punkte

๐Ÿ“Œ Post-Modern CSS (In-Depth on CSS Grid, Flexbox and Other New Properties)


๐Ÿ“ˆ 35.27 Punkte

๐Ÿ“Œ How to Override the Properties of a CSS Class Using Another CSS Class


๐Ÿ“ˆ 35.27 Punkte

๐Ÿ“Œ 6 Advanced CSS Properties to Make Your Content Stand Out


๐Ÿ“ˆ 30.31 Punkte

๐Ÿ“Œ 5 Hidden CSS Properties You Didn't Know Existed


๐Ÿ“ˆ 29.74 Punkte

๐Ÿ“Œ A BRIEF REVIEW OF CSS CASCADING, CSS SELECTORS and CSS SPECIFICITY.


๐Ÿ“ˆ 28.4 Punkte

๐Ÿ“Œ Choosing the Right CSS Approach: Tailwind CSS vs Bootstrap vs Vanillaย CSS


๐Ÿ“ˆ 28.4 Punkte

๐Ÿ“Œ CSS Grid: Moving From CSS Frameworks To CSS Grid (2018 and beyond)


๐Ÿ“ˆ 28.4 Punkte

๐Ÿ“Œ Stylify CSS: Automagic CSS bundles splitting into CSS layers in Astro.build


๐Ÿ“ˆ 28.4 Punkte

๐Ÿ“Œ The Strategy Guide to CSS Custom Properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Understanding CSS Custom Properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ New in Chrome 78: New origin trials, CSS Properties and Values API, and fresher service workers!


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ New in Chrome 85: CSS Properties, content-visibility, getInstalledRelatedApps(), and lots more!


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Deploying CSS Logical Properties On Web Apps


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ New in Chrome 109: OPFS on Android, new css properties, MathML Core support


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Creating A High-Contrast Design System With CSS Custom Properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Costly CSS Properties and How to Optimize Them


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Hey, hey we're the translate, scale, and rotate CSS properties - and we don't monkey around


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ CSS Timeline with Custom Properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ CSS Shorthand Properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ How to Transition CSS โ€œdisplayโ€ + โ€œopacityโ€ Properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ A Comprehensive Guide to CSS Shorthand Properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ 5 super useful CSS properties


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Exploring Variables in CSS (custom properties)


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Essential CSS Shorthand Properties: Streamlining Your Styles


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ A Complete Guide to CSS Logical Properties, with Cheat Sheet


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ Custom Properties vs. CSS Variables: Understanding the Differences and When to Use Each


๐Ÿ“ˆ 25.8 Punkte

๐Ÿ“Œ 3 Creative VS Code Extensions You Need To Try Out


๐Ÿ“ˆ 25.71 Punkte

๐Ÿ“Œ Ransomware: Five questions you need to ask about your defences, before you get attacked


๐Ÿ“ˆ 24.67 Punkte

๐Ÿ“Œ Five Things You Can Do with Serverless | Five Things


๐Ÿ“ˆ 24 Punkte











matomo