Urgent.News

What's breaking now, across thousands of outlets.

Tech

CSS Pseudo-Classes & Pseudo-Elements: Features That Make Websites Feel Interactive

Have you ever hovered over a button on a website and watched it change colour? Maybe a navigation link suddenly became highlighted when your cursor moved over it. Or perhaps you clicked inside a form field and its border changed, making it obvious where you were supposed to type. You might assume that JavaScript is responsible for all of these interactions. But here's something interesting: CSS…

You likely have seen a website button change colour when you hover your mouse over it. Or a navigation link may become highlighted as your cursor passes over it. Perhaps a form field border shifts once you start typing inside it. You might assume that JavaScript is behind all these interactive and visual effects. But there is an alternative: CSS can achieve many small interactive effects by itself.

Two powerful features that make this possible are pseudo-classes and pseudo-elements. They are incredibly handy once you understand what they are for.

In this beginner-friendly guide, we will explore:

- What pseudo-classes are

- What pseudo-elements are

- The key differences between them

- Common example uses like :hover, :focus, :active, :first-child, :nth-child()

- Practical tips for using them

- Typical beginner mistakes to avoid

Let's dive in.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to Search Across Every Meeting Transcript You Own (Not Just the Last One)

"Someone mentioned pricing in a call last month. Which call? Who said it?" If your transcripts live as loose files from three different tools, that question takes twenty minutes.

  • Gather all meeting transcripts in a single folder and convert to plain text.
  • Use MeetScribe tool to index transcripts with metadata for targeted searches.
  • Import transcripts once to create local full-text index for efficient searching.

The agent loop is 32 lines. Stopping it is the product.

A working agent loop is almost embarrassingly short. In Python it was about 32 lines: call the model, if it asks for a tool you run the tool, append the result, loop.

  • The agent loop comprises approximately 32 lines of code.
  • Issues like temperature settings, tool errors, and budget limits can disrupt the loop.
  • Safeguards such as human intermediaries and exit point checks are crucial for reliability.

How to Get Action Items With Owners and Due Dates Out of Your Meeting Transcripts

Every meeting ends with commitments scattered through conversation: "I'll send it by Friday." "Priya will draft the page by the 10th." "We decided to launch in January." A week later, nobody can find…

  • Manual method identifies key phrases like "I'll", "by Friday", "action item" in meeting transcripts.
  • Both methods generate detailed action items with owners and due dates from meeting transcripts.

NyxJ 2.0.0

NyxJ 2.0.0 marque un tournant : le projet passe d'un simple parseur à une plateforme complète pour le traitement JSON et les services web, écrite en C11 sans dépendance runtime.

  • NyxJ 2.0.0 marks significant evolution from JSON parser to comprehensive platform
  • Thread-safe parsing engine adheres to RFC 8259 with security protections
  • Includes 12 modules, web framework, CLI toolset, and extensive documentation

Amutable Foundations: A Technical Overview

Lennart Poettering, Michael Vogt, and Joaquim Rocha have put together a detailed overview of what the Amutable Operating System (AOS) and associated infrastructure will look like.

  • AOS lacks UNIX shell and SSH access, reducing attack surface
  • AOS defaults to not installing Python and Perl interpreters
  • AOS only activates signed images with Verity data

Asahi Linux 7.3 progress report

The Asahi Linux developers have put out a new report on their progress toward a Linux distribution for Apple devices. Some time ago, we were made aware of multiple attempts to exploit our permissive…

  • Asahi Linux developers release progress report
  • Shift repositories to GNU GPL 2 or later
  • Code now licensed under strong copyleft

More from Saturday 7 November →