The :nth-child pseudo class is commonly used for targeting elements based on their position within a parent container, for...

DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...

makandracards.com

I have moved away from creating fixture elements using CSS selectors. While CSS can be very concise, it can be...

makandra dev
w3.org

This decision tree describes how to use the alt attribute of the element in various situations. For some types of...

Elements can be hidden and shown by toggling the display property. However, this is not animatable, so we often turn...

You are given two CSS selectors that you do not control. How can you build a new selector that matches...

Modern JavaScript includes Intl.NumberFormat to format numbers in different formats and locales. In this card, we describe a wrapper for...

open-ui.org

tl;dr When browsers start to adapt proposals from Open UI, it might not be necessary to use any 3rd...

Note Using rem only ever makes sense when the root font size is dynamic, i.e. you leave control to the...

gridbyexample.com

Rachel Andrew has built a website about CSS Grid. Video tutorials More than 30 layout examples for feature demonstration

makandra dev
tpgi.com

These are the top ten accessibility errors as researched by TPGi, a company focusing on accessibility. See the linked article...

The Web Animations API has great browser support, and you should be using it to animate DOM elements from JavaScript...

Up until Chrome 120, scrollbars could only be styled using the various -webkit-scrollbar-* pseudo elements, e.g. to make the...

sitepoint.com

Multiply by 1x the unit: $number = 13 $length = $number * 1px // => 13px Removing a unit

If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e...

makandra dev

Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...

bitsofco.de

Even when you app has no CSS at all, you still inherit a default user agent stylesheet from your browser...

Every modern Rails app should have a Content Security Policy enabled. Very compatible default The following "default" is a minimal...

thegnar.com

View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...

The recommended additional setup of the spreewald gem, a useful set of cucumber steps, includes adding a file for defining...

github.com

For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...

If you want to collapse/expand elements with dynamic content (and thus unknown height), you can not transition between height: 0...

TL;DR: Grid elements have min-width: auto in a 1fr column, which may lead to overflows. With minmax(0...

Note: You won't need this for single lines of text. In this case it is better to just use...