Search
Sticky Headers And Full-Height Elements: A Tricky Combination
9.9.2024
Quite a fun article I worked on with Philip Braunen. Do you know that little bit of elasticity you get when scrolling beyond the viewport when browsing the web on a mobile device? iPhone calls it a “rubber-banding” effect. …
Sticky Headers And Full-Height Elements: A Tricky...
How to Add a Header to a curl Request
3.8.2024
curl is one of those great utilities that’s been around seemingly forever and has endless use cases. These days I find myself using curl to batch download files and test APIs. Sometimes my testing leads me to using different HTTP headers in my requests. To add a header to a curl request,...
5 Website Header Design Trends for 2023
13.9.2022
You now have the ability to customize the design of website headers in WordPress. Read this post to find out what kinds of website header design trends you can experiment with
Fintech Makes Moves Into the Auto and Home Repair Industries With FixxFi
29.8.2022
PRESS RELEASE. Dublin, Ireland, 8/29/2022 – One of the arguments against cryptocurrencies has been, “What’s the point of having a currency if you can’t use it?” While many projects are trying to establish utility for their tokens outside the world of blockchain...
Roundup of Recent Document Outline Chatter
21.7.2022
It’s not everyday that HTML headings are the topic de jour, but my folder of saved links is accumulating articles about the recently merged removal of the document outline algorithm in the WHATWG Living Standard.
First off, you should know …
Roundup of Recent Document Outline Chatter...
Sticky Definition Lists
28.10.2021
I ran across this 30 seconds of code website the other day, and they have a CSS section which is really good! The first example snippet I looked at was this “floating section headers” example, reminding me yet again how …
The post Sticky Definition Lists appeared first...
Collective #673
5.8.2021
How To Build Resilient JavaScript UIs * Apollo * User preference media features client hints headers
The post Collective #673 appeared first on Codrops
Trigonometry in CSS and JavaScript: Beyond Triangles
5.7.2021
Web design is such a rectangle-based design medium that literally any deviation from it feels fresh. Michelle Barker gets into using math in various ways to programmatically draw lines, shapes, and animations that end up looking both beautiful and have …
The post Trigonometry in CSS...
Making Tables With Sticky Header and Footers Got a Bit Easier
15.6.2021
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...
Sticky Headers: 5 Ways to Make Them Better
21.4.2021
Page Laubheimer says that if you’re going to do a sticky header…
Keep it small.
Visually contrast it with the rest of the page.
If it’s going to move, keep it minimal. (I’d say, respect prefers-reduced-motion.)
Consider “partially persistent
…
The post Sticky...
Life on the Run- An Insiders Look at John McAfee on the Run
31.3.2021
I opened my Telegram and noticed I had way more messages than usual. I knew something was askew. The headers of the messages were all very similar, “John McAfee just called you an idiot on Twitter.” Here we go I muttered under my breath as I further investigated what all the hype...
A table with both a sticky header and a sticky first column
10.2.2021
We’ve covered that individual <table> cells, <th> and <td> can be position: sticky. It’s pretty easy to make the header of a table stick to the top of the screen while scrolling through a bunch or rows (like this …
The post A table with both a sticky...
How to Use CSS Grid for Sticky Headers and Footers
2.9.2020
CSS Grid is a collection of properties designed to make layout easier than it’s ever been. Like anything, there’s a bit of a learning curve, but Grid is honestly fun to work with once you get the hang of it. One area where it shines is dealing with headers and footers. With a little...
HTML for Subheadings and Headings
6.8.2020
Let’s say you have a double heading situation going on. A little one on top of a big one. It comes up, I dunno, a billion times a day, I’d say. What HTML do you go for? Dare I say, it depends? But have you considered all the options? And how those options play out semantically...
On Adding IDs to Headers
11.6.2020
Here’s a two-second review. If an element has an ID, you can link to it with natural browser behavior. It’s great if headings have them, because it’s often useful to link directly to a specific section of content.
<h3 id="step-2"Step 2</a
Should I be so inclined, I could...
Adding CSS to a Page via HTTP Headers
4.6.2020
Only Firefox supports it, but if you return a request with a header like this:
Header add Link "<style.css;rel=stylesheet;media=all"
…that will link to that stylesheet without you having to do it in the HTML. Louis Lazaris digs into it:
[…] the only thing I can think of that could...
Rotated Table Column Headers… Now With Fewer Magic Numbers!
1.6.2020
Rotated <table> column headers is something that’s been covered before right here on CSS-Tricks, so shout-out to that for getting me started and helping me achieve this effect. As the article points out, if you aren’t using trigonometry to calculate your table styles, you’ll have to rely...
Create Diagonal Layouts Like it’s 2020
9.4.2020
Nils Binder covers the ways:
1. Use an SVG in the form of a triangle. This technique is nicely described by Erik Kennedy on CSS-Tricks.
2. Hide part of your section using clip-path. Read Diagonal Containers in CSS by Sebastiano Guerriero or Sloped edges with consistent angle...
In-Browser Performance Linting With Feature Policies
26.2.2020
Here’s a neat idea from Tim Kadlec. He uses the Modheader extension to toggle custom headers in his browser. It also lets him see when images are too big and need to be optimized in some way. This is a great way to catch issues like this in a local environment because browsers will throw an error...
How to Specify User Agent with cURL
25.2.2020
Over the years I’ve shared how to perform a number of actions with cURL: how to send POST data, how to retrieve headers, follow redirects, check GZIP encoding, and more. Another useful cURL directive is sending the user agent, as some servers respond with different content or headers...