Selectors That Depend on Layout
“Why the heck don’t we have ::first-column?”
I heard someone ask that the other day and it’s a valid question. I’d even take that question further by asking about ::nth-column() or whatever else relates to CSS columns. We have stuff like ::first-letter and ::first-line. Why not others?
There are many notable things missing from the “nth” crowd. Seven years ago, I wrote “A Call for ::nth-everything” and it included clear use cases like, perhaps, selecting the first …
The post Selectors That Depend on Layout appeared first on CSS-Tricks.
Doc Pop News Drop: GutenbergCloud and the Gutenberg Module for Drupal
The post Doc Pop News Drop: GutenbergCloud and the Gutenberg Module for Drupal appeared first on Torque.
7 Button Design Guidelines for WordPress That You Need to Know About
The post 7 Button Design Guidelines for WordPress That You Need to Know About appeared first on Torque.
Apply a Filter to a Background Image
You can apply a filter to an entire element quite easily with the filter property. But what if you want to apply a filter just to the background of an element? It’s weirdly tricky.
There are CSS properties that specific to backgrounds, like background-blend-mode — but blending and filters are not the same thing. It sorta seems to be the reason we have backdrop-filter, but not quite. That does filtering as the background interacts with what is behind the …
The post Apply a Filter to a Background Image appeared first on CSS-Tricks.
Netlify
(This is a sponsored post.)
It’s always fun to watch developers discover Netlify for the first time. It’s so easy. One way to do it is to just literally drag and drop a folder onto them and it will be online. Even better, connect a Git repo to a Netlify site and tell it what branch you want to watch, then any commits to that branch will automatically go live, even running your site’s build as it does it. …
The post Netlify appeared first on CSS-Tricks.
10+ Best iPhone XS, XS Max & XR Mockups
20+ Best Landscape Lightroom Presets
5th Annual Hacktoberfest Kicks Off Today, Updated Rules Require 5 Pull Requests to Earn a T-shirt
Preventing a Grid Blowout
Say you have a very simple CSS grid layout with one column fixed at 300px and another taking up the rest of the space at 1fr.
.grid {
display: grid;
grid-template-columns: 1fr 300px;
}
That’s somewhat robust. That 1fr column will take up any remaining space left behind by the fixed 300px column. It’s true that the auto value would do the same, but auto isn’t quite as robust since it’s size is based on the content inside. So, …
The post Preventing a Grid Blowout appeared first on CSS-Tricks.




