Search

Nalezeno "CSS": 3281

Inline Styles as Classes (lol)


If you’re abhorred by using inline styles, just move that style to the class attribute! And then make sure you have CSS in place that, ya know, does what it says on the box. I've revolutionized CSS. pic.twitter.com/1AWCldyCwP — Sam … The post Inline Styles as Classes (lol)...

Useful and Useless Code Comments


Jim Nielsen: If somebody says a comment isn’t adding any value, I would ask: to whom? Personally, I’ve never liked the advice that writing obvious comments is bad practice—probably because I write obvious comments all the time. Jim showed … The post Useful and Useless Code Comments...

How I Used the WAAPI to Build an Animation Library


The Web Animations API lets us construct animations and control their playback with JavaScript. The API opens the browser’s animation engine to developers and was designed to underlie implementations of both CSS animations and transitions, leaving the door open to … The post How I Used...

Detect Unused Classes in… HTML


Usually, when “unused” comes up in conversation regarding CSS, it’s about removing chunks of CSS that are not used in your site or, at least, the styles not currently in use on a specific page. The minimal amount of CSS … The post Detect Unused Classes in… HTML...

Media Queries in Times of @container


Max Böck took me up on my challenge to look through a codebase and see how many of the @media queries could ultimately become @container queries. I took the bait and had a look at some of my projects – … The post Media Queries in Times of @container appeared first on CSS-Tricks. You...

Just How Niche is Headless WordPress?


I wonder where headless WordPress will land. And by “headless” I mean only using the WordPress admin and building out the user-facing site through the WordPress REST API rather than the traditional WordPress theme structure. Is it… big? The future … The post Just How Niche...

Making Tables With Sticky Header and Footers Got a Bit Easier


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

CSS-Tricks Chronicle XXXX


Just a little link roundup of some off-site stuff I’ve done recently. As I’m wont to do from time to time. DevJourney Podcast #151 Chris Coyier from ceramics to CSS-Tricks and CodePen‘ Chris took us from playing on … The post CSS-Tricks Chronicle XXXX appeared first...

Securing Your Website With Subresource Integrity


When you load a file from an external server, you’re trusting that the content you request is what you expect it to be. Since you don’t manage the server yourself, you’re relying on the security of yet another third party … The post Securing Your Website With Subresource Integrity appeared...

Safari 15: New UI, Theme Colors, and… a CSS-Tricks Cameo!


There’s a 33-minute video (and resources) over on apple.com covering the upcoming Safari changes we saw in the WWDC keynote this year in much more detail. Look who’s got a little cameo in there: Perhaps the most noticeable thing there … The post Safari 15: New UI, Theme Colors...

The Possibilities of Syndication


That’s the one word that isn’t an adjective in the acronym RSS. Really Simple Syndication. RSS isn’t just about RSS readers. Even though, gosh if I don’t love RSS readers. It’s about putting content in a format that is … The post The Possibilities...

Adding Shadows to SVG Icons With CSS and SVG Filters


Why would we need to apply shadows to SVG? Shadows are a common design feature that can help elements, like icons, stand out. They could be persistent, or applied in different states (e.g. :hover, :focus, or :active) … The post Adding Shadows to SVG Icons With CSS and SVG Filters appeared...

Put a Background on Open Details Elements


One thing that can be just a smidge funky about the <details> element is that, when open, it’s not always 100% clear what is inside that element and what isn’t. I’m not saying that always matters or that it’s a … The post Put a Background on Open Details...

Equal Columns With Flexbox: It’s More Complicated Than You Might Think


As awesome as flexbox is, what it’s doing under the hood is actually a little strange because, by default, it is doing two things at once. It first looks at the content size which is what we would get if by declaring width: max-content on an element. But on top of that, flex-shrink is also doing...

Building a Headless CMS with Fauna and Vercel Functions


In this tutorial, we will learn and use headless CMS, Fauna, and Vercel functions to build a blogging platform, Blogify After that, you can easily build any web application using a headless CMS, Fauna and Vercel functions. The post Building a Headless CMS with Fauna and Vercel Functions appeared...

A Cornucopia of Container Queries


I don’t know about y’all, but my feeds have been flooded with articles about CSS Container Queries these past few weeks. The buzz about container queries actually started back in December after Miriam Suzanne posted a proposal (picking up on … The post A Cornucopia of Container...

target=”blank”


Does that make your eye twitch a little bit? Like… it’s a typo. It should be target="_blank" with an underscore to start the value. As in… <a target="_blank" href="https://codepen.io"Open CodePen in a New Tab </a Welp, that’s correct syntax!… The post...

Looking at WCAG 2.5.5 for Better Target Sizes


Have you ever experienced the frustration of trying to tap a button on a mobile device only to have it do nothing because the target size is just not large enough **and it’s not picking up on your press? Maybe … The post Looking at WCAG 2.5.5 for Better Target Sizes appeared first...

CSS-Trickz: An Experiment with Netlify’s On-Demand Builders


WordPress sites have an API by default. Wanna see this site’s most recent posts, with just a specific set of data… in JSON format? Here ya go. Alex Riviere made a joke site using that. At first, the site … The post CSS-Trickz: An Experiment with Netlify’s On-Demand Builders...

Links on Accessibility


Show/Hide password accessibility and password hints tutorial — Nicolas Steenhout goes deep on <input type="password"> accessibility. For one thing, being able to toggle it to type="text" should be possible, while announcing, politely, the change. But also, put the password hints...

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