Newsletter Subject

#386: CSS

From

smashingmagazine.com

Email Address

newsletter@smashingmagazine.com

Sent On

Tue, Jan 3, 2023 03:09 PM

Email Preheader Text

With CSS skewed highlights, CSS trees, CSS overlaps and shiny new CSS techniques. Issue #386 •

With CSS skewed highlights, CSS trees, CSS overlaps and shiny new CSS techniques. Issue #386 • Jan 23, 2023 • [View in the browser]( 💨 [Smashing Newsletter]( Namaste Smashing Friends, 2023 is here, a new year with new hopes, new goals and new experiences. And as we’re diving into the new year, we’d like to send you a lot of positive energy and optimism in hopes that 2023 will bring us all peace, stability, calmness and plenty of wonderful and unforgettable memories of that year. Good memories, with a lot of fun, laughter, and human kindness shared with your family and friends. It’s about time. In this very first edition of the newsletter this year, we’d love to start with something that’s always been very close to our hearts: CSS. Below you’ll find a few useful CSS techniques that hopefully will help you resolve some of your UI troubles. And perhaps as a good start to the year, let’s begin with an [act of kindness](. Send a word of support to everybody who needs it, send a kind message or make somebody smile, or tell them how much you love and appreciate them. And: don’t forget to reserve time for yourself in your calendar before it gets blocked with all the meetings. Have a good one, everyone! — Vitaly ([@vitalyf]( --------------------------------------------------------------- 1. Skewed Highlights With CSS So you need to design a “highlighter” effect using only CSS while adapting to text changes. How would you go around building it? In his tutorial on [Skewed Highlight]( Vadim Makeev describes a simple way to make it work. [Skewed Highlights With CSS]( [Skewed Highlights With CSS]( Vadim suggests using the element, with side angles achieved with CSS gradients: left and right rectangles with a diagonal gradient and a part in between with just a fill. And if the text wraps onto multiple lines, we can use box-decoration-break: clone, so every line of the element is decorated like its own element. Solved! And it looks fantastic! (vf) --------------------------------------------------------------- 2. Tree Views In CSS We all had to create a tree view at some point: a collapsible list with nested accordions resembling a file folder structure. Typically we would use JavaScript to make it work, but as it turns out, that’s really not necessary. [Tree Views In CSS]( In [CSS Tree Views]( Kate Rose Morley provides a tutorial on how to make the tree view work with a few simple nested lists and
/ inside of each list item. Screen readers will understand the tree view as lists nested inside disclosure widgets, and the standard keyboard interaction is supported automatically. Et voila! (vf) --------------------------------------------------------------- 3. Overlaps In CSS So your designer wants stuff to overlap. Perhaps it’s a few boxes that belong together, but one needs to live on top of another. Or maybe you have boxes stacked atop boxes next to boxes nested within boxes. That’s the trouble that Hui Jing has run into. And she decided to figure it out once and for good. Overlaps In CSS In [her article]( Hui Jing explored various options to get things just right, from negative margins and translation using transform to absolute positioning and CSS Grid. In the end, the easiest way to reason with layout seemed to be CSS Grid, with each item not “disturbing” others on the grid, and we can use the box-alignment properties to adjust them within their allocated spaces. (vf) --------------------------------------------------------------- 4. Upcoming SmashingConfs And Workshops Every year we bring bright and kind people who care about the web to share what they’ve learned. For 2023, we can’t wait to welcome you to [SmashingConf Freiburg 2023]( (Sep 4–6, 2023) with adventures into design systems, accessibility, CSS/JS and interface design patterns. [Get your early-bird ticket!]( [Smashing Online Workshops]( We’re also very excited about our very first [SmashingConf Front-End @ SF 2023]( (May 23–26, 2023), entirely focused on cutting-edge front-end. From accessibility and advanced CSS to JavaScript gems and web performance. With a dash of Tailwind, Next.js and TypeScript. [Get your early-bird ticket!]( [Smashing Online Workshops]( As always, here’s an overview of our [upcoming workshops]( - [Successful Design Systems]( Workflow with Brad Frost. Jan 10–24 - [Designing For Complex UI Masterclass]( UX with Vitaly Friedman. Jan 19 – Feb 2 - [New Front-End Adventures, 2023 Edition]( DEV with Vitaly Friedman. Feb 8–22 - [Universal Principles of Typography Masterclass]( UX with Elliot Jay Stocks. Mar 2–16 - [Interface Design Patterns UX Training]( UX with Vitaly Friedman. Mar 10 – Apr 7 - [Smart Interface Design Patterns (Videos)]( UX 9h-video + UX training with Vitaly Friedman - [Jump to all workshops →]( --------------------------------------------------------------- 5. CSS Blend Modes Blending modes are a way of creating new colors based on two input colors, a foreground color, and a background color. There are [plenty of options out there]( but how exactly would we apply them in CSS? [CSS Blend Modes]( In his post, Scott Vandehey shows how to create some nifty effects with CSS blend modes by using radial gradients, a layered breakdown approach for filters, and then applying mix-blend mode to the result. Michelle Barker highlights more visual effects in [CSS Halftone patterns]( too. (vf) --------------------------------------------------------------- 6. Twelve Days Of Web A celebration of CSS has just wrapped up on [12 Days of Web](. It’s a lovely project curated by Stephanie Eckles every year to highlight the wonders of CSS. This year, there is quite a menu: from new viewport units and CSS image() to cascade layers, CSS scroll snap, :has() and CSS subgrid. 12 Days Of Web All articles come with ready-to-use demos and detailed tutorials, and Stephanie also [reviews]( exciting additions to CSS that became fully or nearly cross-browser in 2022: container queries, :focus-visible, accent-color, overscroll-behavior, and (almost there!) subgrid! The article also highlights references to articles to get started. What a time to write CSS! (vf) --------------------------------------------------------------- 7. CSS Style Queries With container queries available in the browsers already, we might settle down and get used to replacing media queries with container queries and call it a day. But not so fast. Recently, the Chrome team released experimental support for a new proposed CSS spec and style queries. And it might be quite a game-changer, too. [CSS Style Queries]( CSS style queries allow us to query a container based on its style rather than just its size, e.g. we could check if the container is a Flexbox and then style the child based on that. Or we could adjust the color of a headline if it lives on top of a dark photo. In [CSS Container Style Queries]( Ahmad Shadeed goes through a few use cases and shows how to use style queries. There are plenty of fine details covered by Una Kravets in her article [Style Queries]( too. Browser support? Currently still considered to be experimental and is only implemented in Chrome Canary. (vf) --------------------------------------------------------------- 8. CSS Mesher Who doesn’t like a lovely gradient? Or perhaps even a palette of gradients that would make up a beautiful mesh gradients mess, only with CSS? [CSS Mesher]( allows you to choose a randomly generated CSS mesh or finetune the colors to create a perfect custom one. [CSS Mesher]( And if you need a few more generators for all your visual needs, [SVG Generators]( and [CSS Generators]( are handy little round-ups we prepared a while back, featuring everything from doodle patterns and text warping to perfect shadows and funky border-radii! Ones for the bookmarks! (vf) --------------------------------------------------------------- 9. New On Smashing Job Board - [UX/UI Web & Mobile Application Designer / Digital Designer]( at Air Line Pilots Association (West Mclean, VA) - [Frontend Engineer]( at Alasco GmbH (Munich, Germany) - [Senior Designer]( at DUMBO (Cologne, Germany) --------------------------------------------------------------- 10. Recent Smashing Articles - [The State Of Usability In 2023 🎊]( - [Opening The Doors To 2023 (January Wallpapers Edition)]( - [Fluid Typography: Predicting A Problem With Your User’s Zoom-In]( - [A Guide To Command-Line Data Manipulation]( - [Deploying CSS Logical Properties On Web Apps]( - [Read more articles on Smashing Magazine →]( --------------------------------------------------------------- That’s All, Folks! Thank you so much for reading and for your support in helping us keep the web dev and design community strong with our newsletter. See you next time! --------------------------------------------------------------- This newsletter issue was written and edited by Cosima Mielke (cm), Vitaly Friedman (vf) and Iris LjeÅ¡njanin (il). Sent to truly [smashing]( readers via [Mailchimp](. We sincerely appreciate your kind support. You rock. [Follow us on Twitter]( • [Join us on Facebook]( Weekly issues with useful tips for web devs. Email: newsletter@smashingmagazine.com. [unsubscribe]( • [update preferences]( • [view in your browser](

Marketing emails from smashingmagazine.com

View More
Sent On

01/10/2024

Sent On

24/09/2024

Sent On

17/09/2024

Sent On

10/09/2024

Sent On

03/09/2024

Sent On

27/08/2024

Email Content Statistics

Subscribe Now

Subject Line Length

Data shows that subject lines with 6 to 10 words generated 21 percent higher open rate.

Subscribe Now

Average in this category

Subscribe Now

Number of Words

The more words in the content, the more time the user will need to spend reading. Get straight to the point with catchy short phrases and interesting photos and graphics.

Subscribe Now

Average in this category

Subscribe Now

Number of Images

More images or large images might cause the email to load slower. Aim for a balance of words and images.

Subscribe Now

Average in this category

Subscribe Now

Time to Read

Longer reading time requires more attention and patience from users. Aim for short phrases and catchy keywords.

Subscribe Now

Average in this category

Subscribe Now

Predicted open rate

Subscribe Now

Spam Score

Spam score is determined by a large number of checks performed on the content of the email. For the best delivery results, it is advised to lower your spam score as much as possible.

Subscribe Now

Flesch reading score

Flesch reading score measures how complex a text is. The lower the score, the more difficult the text is to read. The Flesch readability score uses the average length of your sentences (measured by the number of words) and the average number of syllables per word in an equation to calculate the reading ease. Text with a very high Flesch reading ease score (about 100) is straightforward and easy to read, with short sentences and no words of more than two syllables. Usually, a reading ease score of 60-70 is considered acceptable/normal for web copy.

Subscribe Now

Technologies

What powers this email? Every email we receive is parsed to determine the sending ESP and any additional email technologies used.

Subscribe Now

Email Size (not include images)

Font Used

No. Font Name
Subscribe Now

Copyright © 2019–2025 SimilarMail.