Share This
Get in Touch
Scroll Down
//css-tricks.com

7 Practical Uses for the ::before and ::after Pseudo-Elements in CSS

CSS ::before and ::after pseudo-elements allow you to insert “content” before and after any non-replaced element (e.g. they work on a <div> but not an <input>). This effectively allows you to show something on a web page that might not be present in the HTML content. You shouldn’t use it for actual content because it’s not very accessible in that you can’t even select and copy text inserted on the page this way —  it’s just decorative content. ..

Read more
  • 0 Comment

An Event Apart Full Summit! (Use Coupon AEACSST21)

(This is a sponsored post.) The web’s premier conference is online this fall, October 11–13, 2021: An Event Apart Full Summit. If you already know how good of a conference this is (i.e. that some of the web’s biggest ideas debut at AEA) then just go buy tickets and please enjoy yourself. You can buy literally any combination of the three days. That coupon code, AEACSST21, is good for $100 off if you buy two or more days. That’s only half! If you’d like to ..

Read more
  • 0 Comment

Resources aren’t requested by CSS, but by the DOM

This is a good tweet from Harry: Simple yet significant thing all developers should keep in mind: CSS resources (fonts, background images) are not requested by your CSS, but by the DOM node that needs them [Note: slight oversimplification, but the correct way to think about it.]— Harry Roberts (@csswizardry) September 10, 2021 I like it because, as he says, it’s the correct way to think about it. It helps form a mental model of how websites work. Just to s..

Read more
  • 0 Comment

Embracing Asymmetrical Design

I’ll never forget one of Karen McGrane’s great lessons to the world: truncation is not a content strategy. The idea is that just clipping off text programmatically is a sledgehammer, and avoids the kind of real thinking and planning that makes for good experiences. Truncation is not a content strategy. pic.twitter.com/sMfVCWUGJV— Karen McGrane (@karenmcgrane) October 10, 2014 Truncation is not a content strategy pic.twitter.com/F3kjgOOnbv— Karen McGr..

Read more
  • 0 Comment

imba

It’s not every day you see a new processor for building websites that reinvents the syntax for HTML and CSS and JavaScript. That’s what imba is doing. That’s an awful lot of vendor lock-in, but I guess if you get over the learning curve and it helps you build performant websites quickly, then it’s no different than picking any other stack of processing languages. I would hope their ultimate goal is to compile to native apps across platforms, but if not,..

Read more
  • 0 Comment

Exploring the CSS Paint API: Polygon Border

Nowadays, creating complex shapes is an easy task using clip-path, but adding a border to the shapes is always a pain. There is no robust CSS solution and we always need to produce specific “hacky” code for each particular case. In this article, I will show you how to solve this problem using the CSS Paint API. Exploring the CSS Paint API series: Part 1: Image Fragmentation EffectPart 2: Blob AnimationPart 3: Polygon Border (you are here!) Before we..

Read more
  • 0 Comment

Designing Beautiful Shadows in CSS

My favorite kind of blog post is when someone takes a subject that I’ve spent all of five minutes considering and then says—no!—this is an enormous topic worthy of a dissertation. Look at all the things you can do with this tiny CSS property! I was reminded of this when I spotted this post by Josh Comeau about designing beautiful shadows in CSS: In my humble opinion, the best websites and web applications have a tangible “real” quality to them. There are ..

Read more
  • 0 Comment

Computer Science Unleashed, Chapter 1: Connections

This article is actually an excerpt from Wladston Ferreira Filho‘s new book Computer Science Unleashed. This book is about all the groundbreaking technologies behind the World Wide Web. We might even take them for granted these days, but there are important and learnable technologies behind how it all works. Read on and marvel at the engineering ingenuity that enables simple physical links between computers to become a global, near-instant communication medium that everyone..

Read more
  • 0 Comment

Shadow Roots and Inheritance

There is a helluva gotcha with styling a <details> element, as documented here by Kitty Guiraudel. It’s obscure enough that you might never run into it, but if you do, I could see it being very confusing (it would confuse me, at least). Perhaps you’re aware of the shadow DOM? It’s talked about a lot in terms of web components and comes up when thinking in terms of <svg> and <use>. But <details> has a shadow DOM too: <details> #s..

Read more
  • 0 Comment

Minding the “gap”

..

Read more
  • 0 Comment
Get in Touch
Close