Search

Nalezeno "Newsletters": 1347

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

Build Membership Businesses with Memberful


(This is a sponsored post.) What would your business be like if you sold memberships? It might be more than fun to think about, in fact, it might just be transformative. With membership, would you include little add-ons or … Build Membership Businesses with Memberful originally published...

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

How to Make a “Raise the Curtains” Effect in CSS


“Raise the curtains” is what I call an effect where the background goes from dark to light on scroll, and the content on top also goes from light to dark while in a sticky position. Here’s an example where I … How to Make a “Raise the Curtains” Effect in CSS originally published...

CSS Custom Highlight API: The Future of Highlighting Text Ranges on the Web


Styling ranges of text in software is a very useful thing to be able to do. Thankfully, we have the CSS Custom Highlight API to look forward to because it represents the future of styling text ranges on the web.… CSS Custom Highlight API: The Future of Highlighting Text Ranges on the...

Ahmad Shadeed: Use Cases For CSS fit-content


Ahmad Shadeed covers the CSS fit-content sizing keyword. It’s useful! It just doesn’t come up super often. I find myself using min-content a lot more, like when setting up the height of a grid-template-row. The fit-content keyword is actually … Ahmad Shadeed: Use Cases For...

Web Component Pseudo-Classes and Pseudo-Elements are Easier Than You Think


We’ve discussed a lot about the internals of using CSS in this ongoing series on web components, but there are a few special pseudo-elements and pseudo-classes that, like good friends, willingly smell your possibly halitotic breath before you go … Web Component Pseudo-Classes...

Trailing Slashes on URLs: Contentious or Settled?


A fun deep dive from Zach. Do you have an opinion on which you should use? 1) https://website.com/foo/ 2) https://websites.com/foo The first option has a “trailing slash.” The second does not. I’ve always preferred this thinking: you use a trailing … Trailing Slashes...

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