Search

Nalezeno "QR code": 1615

Chromium spelling and grammar features


Delan Azabani digs into the (hopefully) coming soon ::spelling-error and ::grammar-error pseudo selectors in CSS. Design control is always nice. Hey, if we can style scrollbars and style selected text, why not this? The squiggly lines that indicate...

System *Things


I think we’re all largely aware of named colors in CSS: color: OldLace; background: rebeccapurple; I guess you’d just call those “named colors” in CSS. Those aren’t the only kind of named colors there are though. Some of them … The post System *Things appeared...

How to Upload a File via SSH and Command Line


My preference for daily work is usually GUI applications, like Visual Studio Code for text editing and Cyberduck for remote file server management. I’m also a huge fan of automation, so I do try to learn the command line equivalents of UI functions. My latest desire was wanting to know how...

TablesNG — Improvements to table rendering in Chromium


When I blogged “Making Tables With Sticky Header and Footers Got a Bit Easier” recently, I mentioned that the “stickiness” improvement was just one of the features that got better for <table>s in Chrome as part of the TablesNG upgrade… The post TablesNG...

Using Performant Next-Gen Images in CSS with image-set


The CSS image-set() function has been supported in Chromium-based browsers since 2012 and in Safari since version 6. Support recently landed in Firefox 88. Let’s dive in and see what we can and can’t do today with image-set().… The post Using Performant Next-Gen Images in CSS with image-set...

“Weak declaration”


PPK looks at aspect-ratio, a CSS property for layout that, for the most part, does exactly what you would think it does. It’s getting more interesting as it’s behind a flag in Firefox and Safari now, so we’ll have … The post “Weak declaration” appeared first...

inherit, initial, unset, revert


There are four keywords that are valid values for any CSS property (see the title). Of those, day to day, I’d say I see the inherit used the most. Perhaps because it’s been around the longest (I think?) but also … The post inherit, initial, unset, revert appeared first...

Using Custom Elements in Svelte


Svelte fully supports custom elements (e.g. <my-component>) without any custom configuration or wrapper components and has a perfect score on Custom Elements Everywhere. However, there are still a few quirks you need to watch out for, especially around … The post Using Custom...

Using the `outline` Property as a Collapsable Border


The outline property in CSS draws a line around the outside of an element. This is quite similar to the border property, the main exception being that outline isn’t a part of the box model. It is often used for … The post Using the `outline` Property as a Collapsable Border appeared first...

Links on Typography


I studied the fonts of the top 1000 websites. Here’s what I learned. — Michael Li brings the data. San-serif has total dominance. “[…] it is rare to go below 10px or above 24px.” And poor <h5> always being the … The post Links on Typography appeared first...

Inline Styles as Classes (lol)


If you’re abhorred by using inline styles, just move that style to the class attribute! And then make sure you have CSS in place that, ya know, does what it says on the box. I've revolutionized CSS. pic.twitter.com/1AWCldyCwP — Sam … The post Inline Styles as Classes (lol)...

Useful and Useless Code Comments


Jim Nielsen: If somebody says a comment isn’t adding any value, I would ask: to whom? Personally, I’ve never liked the advice that writing obvious comments is bad practice—probably because I write obvious comments all the time. Jim showed … The post Useful and Useless Code Comments...

Sotheby’s Auctioning Source Code for the WWW


The World Wide Web was invented in 1989 by Sir Tim Berners-Lee, a computer scientist from Great Britain. The original source code of the World Wide Web will be auctioned off as an NFT by Sotheby’s Auction called This Changed Everything. The source code consists of 9,555 lines in HTML, HTTP...

Ancient ‘90s Code From Quake Still Controls Lights In Half-Life: Alyx


Reddit user CrazyGiaky noticed something interesting about the flickering lights in Half-Life Alyx. When compared next to flickering lights in the original Half-Life game, the two seemed to sync up. It seemed like Valve was still using the same bit of code to control these lights 22 years later....

Media Queries in Times of @container


Max Böck took me up on my challenge to look through a codebase and see how many of the @media queries could ultimately become @container queries. I took the bait and had a look at some of my projects – … The post Media Queries in Times of @container appeared first on CSS-Tricks. You...

Making Tables With Sticky Header and Footers Got a Bit Easier


It wasn’t long ago when I looked at sticky headers and footers in HTML <table>s in the blog post A table with both a sticky header and a sticky first column. In it, I never used position: sticky on … The post Making Tables With Sticky Header and Footers Got a Bit Easier...

Adding Shadows to SVG Icons With CSS and SVG Filters


Why would we need to apply shadows to SVG? Shadows are a common design feature that can help elements, like icons, stand out. They could be persistent, or applied in different states (e.g. :hover, :focus, or :active) … The post Adding Shadows to SVG Icons With CSS and SVG Filters appeared...

Put a Background on Open Details Elements


One thing that can be just a smidge funky about the <details> element is that, when open, it’s not always 100% clear what is inside that element and what isn’t. I’m not saying that always matters or that it’s a … The post Put a Background on Open Details...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace