Search
Thank You (2019 Edition)
2.1.2020
One of our yearly traditions here is to thank all y'all CSS-Tricks readers at the passing of a new year. It means a lot to me that people come here and read the words I write, and the words of all our staff and guest authors that contribute here as well.
Thank you!
Plus, we dig into the numbers...
Adding Dynamic And Async Functionality To JAMstack Sites
2.1.2020
Jason Lengstorf:
Here’s an incomplete list of things that I’ve repeatedly heard people claim the JAMstack can’t handle that it definitely can:
Load data asynchronously
Handle processing files, such as manipulating images
Read from and write to a database
Handle user authentication and protect...
Validate CSP from Command Line
2.1.2020
The content security policy spec has been an amazing front-end security tool to help prevent XSS and other types of attacks. I’d go as far to say that every site should implement as specific CSP as possible. If you aren’t familiar with CSPs, here’s a quick example:...
What We’re Reading, 2019
1.1.2020
There are so, so, so (so) many things to read out there on the internet. So many, in fact, that it's difficult to keep up with everything.
But, hey, we've got your back! It's our job to surface the best of the best and share it with you right here. That's why it's a good idea to subscribe to this...
A Use Case for a Parent Selector
31.12.2019
Having a "parent selector" in CSS is mentioned regularly as something CSS could really use. I feel like I've had that thought plenty of times myself, but then when I ask my brain for a use case, I find it hard to think of one. Well, I just had one so I thought I'd document it here.
A classic...
A Look Back at 2019: Roundup of Codrops Resources
31.12.2019
Goodbye 2019! Here's our traditional yearly roundup with an overview of all Codrops publications from the past year.
A Look Back at 2019: Roundup of Codrops Resources was written by Team Codrops and published on Codrops
Bitcoin Price Could Rally to $9K Before a Massive Collapse, Here’s Why
29.12.2019
Good news in the short term, as Bitcoin could provide some interesting upward movements to finish 2019 with a bang
Mainstream Media’s Hit Piece on Hitmen Fails Miserably
28.12.2019
Mainstream media is probably one of the worst mediums for factual information because it’s typically filled with ignorance and propaganda. When it comes to cryptocurrencies, darknet markets, and encryption, conventional news outlets publish hit pieces that are beyond absurd. On December...
So Many Color Links
27.12.2019
There's been a run of tools, articles, and resources about color lately. Please allow me to close a few tabs by rounding them up here for your enjoyment.
Curated colors in context
Happy Hues demonstrates a bunch of color palettes in the context of the site itself. That's a nice way to do...
PHP Templating in Just PHP
26.12.2019
With stuff like template literals in JavaScript and templating languages, like JSX, I've gotten used to wanting to write my HTML templates in one nice chunk and sprinkling in variables wherever I need them.
I had a situation where I needed to do that in "raw" PHP the other day, so I'm just...
Stream-Crossing Confusion
23.12.2019
Should I use WordPress or React hooks?
Should I use D3 or CSS?
Should I use Markdown or JSON?
Can I use flexbox in Gatsby?
Can I use custom properties in Jekyll?
Should I use HTML or the cloud?
How do I add dark mode to my Vue site?
These are tongue-in-cheek, but there is a point to be made here....
Highlights of the HTTP Archive Web Almanac
23.12.2019
I recently looked at the CSS chapter of the Web Alamanc and had some thoughts. Here, Stefan Judis looks at the whole thing and rounds up the most interesting bits to him. Here are most of them:
20% of sites don't compress their JavaScript.
React is on 5% of sites while jQuery is on 85% of sites....
Clips from my DEV AMA
20.12.2019
I recently did an AMA over on DEV. Just taking the opportunity to port over some answers here like a good indiewebber.
If you were starting out as a front end dev in 2020, what would you say is the first thing you would learn and why?
You need to put yourself in a position where it's your job...
Crypto Experts Give Their Top Predictions for 2020
19.12.2019
In an industry built around digital scarcity, opinions are in plentiful supply. Everyone’s got one, and they’d love to share it with the rest of the cryptosphere. As the decade draws to a close and another prepares to launch, it’s the perfect time to consider what 2020 has...
Two Lessons I Learned From Making React Components
19.12.2019
Here’s a couple of lessons I’ve learned about how not to build React components. These are things I've come across over the past couple of months and thought they might be of interest to you if you’re working on a design system, especially one with a bunch of legacy technical decisions and a lot...
The Making of a “Special Series” on a WordPress Site
18.12.2019
We just ran a fancy article series here on CSS-Tricks with a bunch of different articles all answering the same question. By fancy, I mean two things:
The articles had a specially-designed template just for them. (Example)
The series has a specially-designed landing page.
One of the reasons...
'Craig Wright Is Not the Victim Here' as He Tries to Dodge Sanctions
18.12.2019
Craig Wright. Source: a video screenshot, Youtybe, CoinGeek
Craig Wright, the controversial Australian computer scientist and supporter of Bitcoin SV (BSV), 'is not the victim here,' claims the latest court filing from David Kleiman’s estate, as Wright is trying to dodge the sanctions order which...
The Order of CSS Classes in HTML Doesn’t Matter
17.12.2019
That’s right! And I can prove it, too. Let’s look at some CSS first:
.a {
color: red;
}
.b {
color: blue;
}
And now let’s look at some markup:
<div class="a b">Here’s some text</div>
The text is going to be blue because .b is defined last in the CSS, right? But what if we...
Now You See It
16.12.2019
I recently accepted a teaching position at a local college here in SoCal where I'll be spouting off whatever I know (or more likely don't know!) about HTML and CSS. It's suffice to say I was all ears (well, actually eyes) when Rachel Andrew recently published a post on teaching CSS.
The display...
Is Bitcoin Now Bullish or Bearish at $7K? Here’s the Scorecard
16.12.2019
Is Bitcoin now bullish or bearish headed into 2020? Here’s how BTC is shaping up exactly a year after its $3.2K bottom was confirmed