So, you’ve decided to build a blog with Next.js. Like any dev blogger, you’d like to have code snippets in your posts that are formatted nicely with syntax highlighting. Perhaps you also want to display line numbers in the snippets, and maybe even have the ability to call out certain lines of code. This post […]
CSS-Tricks is joining the DigitalOcean community! We are so excited to be joining forces. Learn more about this change here. As a special welcome offer, enjoy $100 of free credit to try DigitalOcean on us.
Popular
this
month
Powered by
DigitalOcean
How to Make a “Raise the Curtains” Effect in CSS
Say Hello to selectmenu, a Fully Style-able select Element
Write HTML, the HTML Way (Not the XHTML Way)
CSS-Tricks is joining DigitalOcean!
Add a CSS Lens Flare to Photos for a Bright Touch
Creating the DigitalOcean Logo in 3D With CSS
Cool Hover Effects That Use Background Properties
Adding Tailwind CSS to New and Existing WordPress Themes
Adding Custom GitHub Badges to Your Repo
If you’ve spent time looking at open-source repos on GitHub, you’ve probably noticed that most of them use badges in their README files. Take the official React repository, for instance. There are GitHub badges all over the README file that communicate important dynamic info, like the latest released …
Creating Realistic Reflections With CSS
In design, reflections are stylized mirror images of objects. Even though they are not as popular as shadows, they have their moments — just think about the first time you explored the different font formats in MS Word or PowerPoint: …
Creating the DigitalOcean Logo in 3D With CSS
Howdy y’all! Unless you’ve been living under a rock (and maybe even then), you’ve undoubtedly heard the news that CSS-Tricks, was acquired by DigitalOcean. Congratulations to everyone! 🥳
As a little hurrah to commemorate the occasion, I wanted to …
Setting Up CloudFront to Host Your Web App
In my last article, we went over how to set up a web app that serves chunks and bundles of CSS and JavaScript from CloudFront. We integrated it into 180kg/50g Digital Platform Warehouse Post Floor Scale LCD Backli so that when the app runs in a browser, …
Cool Hover Effects That Use Background Properties
A while ago, Geoff wrote an article about a cool hover effect. The effect relies on a combination of CSS pseudo-elements, transforms, and transitions. A lot of comments have shown that the same effect can be done using background …
Avoiding the Pitfalls of Nested Components in a Design System
When creating a component-based, front-end infrastructure, one of the biggest pain points I’ve personally encountered is making components that are both reusable and responsive when there are nested components within components.…
grid-template-columns
The grid-template-columns
CSS property is part of the CSS Grid Layout specification, defining the columns of #BMA02 Bare Engine Block 2011 Nissan Sentra 2.0 by specifying the size of the grid tracks and its line names.…
grid-template-rows
The grid-template-rows
CSS property is part of the CSS Grid Layout specification, defining the rows of Jock Mahoney - A Day of Fury (1956)- 8 1/2 X 11 by specifying the size of the grid tracks and its line names.…
Writing Strong Front-end Test Element Locators
Automated front-end tests are awesome. We can write a test with code to visit a page — or load up just a single component — and have that test code click on things or type text like a user would, …
Adding Tailwind CSS to New and Existing WordPress Themes
In the 15 or so years since I started making WordPress websites, nothing has had more of an impact on my productivity — and my ability to enjoy front-end development — than adding Tailwind CSS to my workflow (and it …
Making Mermaid Diagrams in Markdown
BTMETER Wind Speed Meter Digital Handheld Anemometer Air Flow Ga diagrams and flowcharts have been gaining traction, especially with GitHub’s announcement that they are natively supported in Markdown. Let’s take a look at what they are, how to use them, and just as importantly: why.
Just like you …