Search

Nalezeno "Not": 4913

Select an Element with a Non-Empty Attribute


Short answer: [data-foo]:not([data-foo=""] { Longer answer (same conclusion, just an explanation on why we might need this): Say you have an element that you style with a special data-attribute: <div data-highlight="product"</div You want to target that element and do special things when...

CSS4


Tab Atkins in 2012: There has never been a CSS4. There will never be a CSS4. CSS4 is not a thing that exists. Rachel Andrew in 2016: While referring to all new CSS as CSS3 worked for a short time, it doesn’t reflect the reality of where CSS is today. If you read something...

Get Moving (or not) with CSS Motion Path


We just linked up the idea that offset-path can be cleverly used to set type on a path. Don't miss Michelle Barker's experimentation either, with drawing paths or animating text along a path. Dan Wilson has also been following this tech for quite a while and points out why the sudden surge...

Smaller HTML Payloads with Service Workers


Short story: Philip Walton has a clever idea for using service workers to cache the top and bottom of HTML files, reducing a lot of network weight. Longer thoughts: When you're building a really simple website, you can get away with literally writing raw HTML. It doesn't take long to need a...

“resize: none;” on textareas is bad UX


Catalin Rosu: Sometimes you need to type a long reply that consists of many paragraphs and wrapping that text within a tiny textarea box makes it hard to understand and to follow as you type. There were many times when I had to write that text within Notepad++ for example and then just paste...

Three High Profile Crypto Networks Face Reward Halvings This Spring


This spring, three of the largest crypto networks, BTC, BCH, and BSV, will undergo their halvings around the same time for the first time in history. During the last halving in 2016, only one network existed, but now three protocols share the same consensus algorithm. Google Trends shows that...

What does “revert” do in CSS?


Miriam Suzanne has a Mozilla Developer video on the subject. The revert value is fairly new, supported in Firefox and Safari, but not yet in Chrome-world. We've already got a couple of related keywords that work on any property which are meant to help control inheritance and reset values....

Governments and Enterprises Can’t Get Enough of Blockchain


Governments have long been wary of Bitcoin, while expressing admiration for its innovative ledger system. This trend can be traced back till 2014, when the “blockchain not bitcoin” mantra was coined. Six years on and that sentiment is being backed by action as governments and businesses...

Woodworking SVG (and Other Real Life Encounters)


Eric Meyer does his woodworking math in SVG. I’ve been hand-coding SVG schematics to figure out how thing should go together, and as a by-product, guide me in both material buying and wood cutting. This might sound hugely bespoke and artisanally overdone, but they’re not that complicated, and...

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