Search

Nalezeno "Article": 1993

How to Serve a Subdomain as a Subdirectory


Let’s say you have a website built on a platform that excels at design and it’s available at example.com. But that platform falls short at blogging. So you think to yourself, “What if I could use a different blogging … How to Serve a Subdomain as a Subdirectory originally...

Syntax Highlighting (and More!) With Prism on a Static Site


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 … Syntax Highlighting (and More!) With Prism on a Static...

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...

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 Realistic Reflections With CSS originally...

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 … Creating the DigitalOcean...

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 Vite so that when the app runs in a browser, … Setting Up CloudFront to Host Your Web App originally published on CSS-Tricks. You should...

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 … Cool Hover Effects That Use Background Properties originally...

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. Take the following “call to action” (<CTA />… Avoiding...

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, … Writing Strong Front-end Test Element Locators originally published on CSS-Tricks. You should...

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 … Adding Tailwind CSS to New and Existing WordPress Themes originally...

Making Mermaid Diagrams in Markdown


Mermaid 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 … Making Mermaid Diagrams in Markdown originally...

Add a CSS Lens Flare to Photos for a Bright Touch


I’m a big fan of movies by J.J. Abrams. I enjoy their tight plots, quippy dialog, and of course: anamorphic lens flares. Filmmakers like Abrams use lens flare to add a dash of ‘homemade’ realism to their movies, … Add a CSS Lens Flare to Photos for a Bright Touch originally...

Adding CDN Caching to a Vite Build


Content delivery networks, or CDNs, allow you to improve the delivery of your website’s static resources, most notably, with CDN caching. They do this by serving your content from edge locations, which are located all over the world. When a … Adding CDN Caching to a Vite Build originally...

Tricks to Cut Corners Using CSS Mask and Clip-Path Properties


We recently covered creating fancy borders with CSS mask properties, and now we are going to cut the corners with CSS mask and clip-path! A lot of techniques exist to cut different shapes from the corners of any element. … Tricks to Cut Corners Using CSS Mask and Clip-Path Properties...

6 Useful Bookmarklets to Boost Web Development


A bookmarklet is a JavaScript-based bookmark that adds to a web browser. I’d like to show you some awesome web browser hacks to aid your web development workflow and how to convert those hacks into time-saving bookmarklets. Activating design mode … 6 Useful Bookmarklets to Boost...

Write HTML, the HTML Way (Not the XHTML Way)


You may not use XHTML (anymore), but when you write HTML, you may be more influenced by XHTML than you think. You are very likely writing HTML, the XHTML way. What is the XHTML way of writing HTML, and what … Write HTML, the HTML Way (Not the XHTML Way) originally published on CSS-Tricks....

Optimizing SVG Patterns to Their Smallest Size


I recently created a brick wall pattern as part of my #PetitePatterns series, a challenge where I create organic-looking patterns or textures in SVG within 560 bytes (or approximately the size of two tweets). To fit this constraint, I have … Optimizing SVG Patterns to Their Smallest Size...

CSS-Tricks is joining DigitalOcean!


Hey hey! I’ve got a big announcement to make here. (Where’s my gong? I feel like this really needs a good gong hit.) CSS-Tricks, this very website you’re looking at, has been acquired by DigitalOcean! You can hear … CSS-Tricks is joining DigitalOcean! originally published...

Say Hello to selectmenu, a Fully Style-able select Element


I want to introduce you to a new, experimental form control called <selectmenu>. We’ll get deep into it, including how much easier it is to style than a traditional <select> element. But first, let’s fill in some context … Say Hello to selectmenu, a Fully Style-able select...

7 Fresh Links on Performance For March 2022


I have a handful of good links to articles about performance that are burning a hole in my bookmarks folder, and wanna drop them here to share. The new WebPageTest website design From fonts to SVG: an icon migration strategy … 7 Fresh Links on Performance For March 2022 originally...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace