Search

Nalezeno "tricks": 3051

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

Elden Ring Player Pretends To Be NPC And Successfully Tricks Invader


Sometimes the best way to win a fight is to be the biggest, toughest badass in the room. However, there are other times when it pays to keep your head down and do nothing. One Elden Ring player did just that, pretending to be an NPC when their game was invaded by another player. And eventually...

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

When to Avoid the text-decoration Shorthand Property


In my recent article about CSS underline bugs in Chrome, I discussed text-decoration-thickness and text-underline-offset, two relatively new and widely-supported CSS properties that give us more control over the styling of underlines. Let me demonstrate the usefulness of … When to Avoid...

Manuel Matuzovic’s CSS Specificity Demo


If you’re looking for a primer on CSS specificity, we’ve got that. And if you’re trying to get ahead of the game, you should be aware of CSS Cascade Layers as well. One of the ways to help get … Manuel Matuzovic’s CSS Specificity Demo originally published...

My white whale: A use case for will-change


 Nic Chan: […] the will-change property landed in major browsers in August 2015, and I’ve been on the lookout for when to use it ever since. It might seem self-evident to apply it to commonly animated properties such … My white whale: A use case for will-change...

Explain the First 10 Lines of Twitter’s Source Code to Me


For the past few weeks, I’ve been hiring for a senior full-stack JavaScript engineer at my rental furniture company, Pabio. Since we’re a remote team, we conduct our interviews on Zoom, and I’ve observed that some developers are not … Explain the First 10 Lines of Twitter’s Source Code...

Superior Image Optimization: An Ideal Solution Using Gatsby & ImageEngine


(This is a sponsored post.) In recent years, the Jamstack methodology for building websites has become increasingly popular. Performance, scalable, and secure, it’s easy to see why it’s becoming an attractive way to build websites for developers. GatsbyJS is … Superior Image Optimization:...

CSS Database Queries? Sure We Can!


Kinda silly sounding, isn’t it? CSS database queries. But, hey, CSS is capable of talking to other languages in the sense that it can set the values of things that they can read. Plus, CSS can request other files, and … CSS Database Queries? Sure We Can! originally published...

5 Accessibility Quick Wins You Can Implement Today


Let’s face it: building an AA or AAA-accessible product can be quite daunting. Luckily, having an accessible product isn’t all-or-nothing. Even seemingly small improvements can have nice quality of life benefits for many people. In that spirit, here are five … 5 Accessibility Quick Wins...

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