12 Modern CSS One-Line Upgrades
Modern CSS Solutions
by Stephanie Eckles
3M ago
Sometimes, improving your application CSS just takes a one-line upgrade or enhancement! Learn about 12 properties to start incorporating into your projects, and enjoy reducing technical debt, removing JavaScript, and scoring easy wins for user experience. Properties are explored for the following categories: Stable Upgrades: fix a hack or issue by replacing older techniques Stable Enhancements: provide an improved experience with well-supported modern properties Progressive Enhancements: provide an upgraded experience when these properties are supported without causing harm in unsupporting br ..read more
Visit website
How Custom Property Values are Computed
Modern CSS Solutions
by Stephanie Eckles
7M ago
Custom properties - aka “CSS variables” - seem fairly straightforward. However, there are some behaviors to be aware of regarding how the browser computes the final values. A misunderstanding of this process may lead to an unexpected or missing value and difficulty troubleshooting and resolving the issue. To help you use custom properties confidently and troubleshoot efficiently, we’ll review: how the browser determines values for any property the impact of “computed value time” pitfalls around using custom properties with cutting-edge CSS why inheritance should inform your custom property ar ..read more
Visit website
Modern CSS For Dynamic Component-Based Architecture
Modern CSS Solutions
by Stephanie Eckles
11M ago
The language of CSS has had an explosion of new features and improvements in the last few years. As a result, feature parity between browsers is at an all-time high, and efforts are being made to continue releasing features consistently and synchronously among evergreen browsers. Today, we will explore modern project architecture, emphasizing theming, responsive layouts, and component design. We'll learn about features to improve code organization and dig into layout techniques such as grid and container queries. Finally, we'll review real-world examples of context-aware components t ..read more
Visit website
Testing Feature Support for Modern CSS
Modern CSS Solutions
by Stephanie Eckles
1y ago
The pace of the CSS language can be challenging to keep up with! Browsers release features and fixes monthly, and the CSS Working Group is constantly working on specifications. So, how do you know using a new feature is "safe" to use? And what are the considerations around making that choice? Let's review how to: find information on new features test for support determine when to use a feature decide whether a fallback is needed use build tools and polyfills Finding Out About New CSS Features # Here is a list of ways you can find out about new and upcoming CSS features: following the develo ..read more
Visit website
Container Query Units and Fluid Typography
Modern CSS Solutions
by Stephanie Eckles
1y ago
Fluid typography is the term for designing font-size rules that responsively adapt the size based on the amount of available inline space. Before the availability of container query units, techniques usually relied on the viewport width - vw - unit. The viewport method is excellent for main page type, such as article headlines. However, viewport-based fluid typography doesn't quite work for narrower spaces that flex independently of the viewport, such as a grid of cards. We'll explore three ways to create dynamic fluid typography rules by leveraging container query units and CSS custom propert ..read more
Visit website
Contextual Spacing For Intrinsic Web Design
Modern CSS Solutions
by Stephanie Eckles
2y ago
The user's browsing environment is not predictable. Tell other developers, and for goodness sakes, tell your designers. Let's learn how to coexist with that unpredictability by using adaptive, contextual spacing techniques. In 2018, Jen Simmons introduced the term "Intrinsic Web Design" in her talk "Everything You Know About Web Design Just Changed." She also shared the principles of intrinsic web design that we'll use as guidance: Contracting & Expanding - the way we consider how our design will adapt to a change in available space Flexibility - using primarily flexbox and grid in combin ..read more
Visit website
Responsive Image Gallery With Animated Captions
Modern CSS Solutions
by Stephanie Eckles
2y ago
Responsively resizing images is a common need, and modern CSS provides tools for ensuring a consistent aspect-ratio while not distorting the images. And grid gives us flexibility for a gallery layout as well as positioning multiple elements in a shared space. This responsive gallery technique explores using: object-fit for responsive image scaling aspect-ratio for consistent image sizes A CSS Grid trick to replace absolute positioning CSS transforms for animated effects handling for touch devices respecting reduced motion Gallery HTML # Here is our initial HTML, which is an ul where each li ..read more
Visit website
Practical Uses of CSS Math Functions: calc, clamp, min, max
Modern CSS Solutions
by Stephanie Eckles
2y ago
There are currently four well-supported math functions in CSS. I've found each of them to be extremely useful in my daily work. These CSS functions can be used in perhaps unexpected ways, such as within gradients and color functions and in combination with CSS custom properties. We'll learn the syntax for each, view basic demos of their functionality, and explore practical use cases. Skip to: calc() clamp() min() max() calc()# Practical purpose of calc(): performing basic math operations, with the ability to interpolate between unit types (ex. rem to vw). This math function has the longest ..read more
Visit website
Modern CSS Upgrades To Improve Accessibility
Modern CSS Solutions
by Stephanie Eckles
2y ago
Accessibility is a critical skill for developers doing work at any point in the stack. For front-end tasks, modern CSS provides capabilities we can leverage to make layouts more accessibly inclusive for users of all abilities across any device. This post will cover a range of topics: Focus Visibility Focus vs. Source Order Desktop Zoom and Reflow Sizing Interactive Targets Respecting Color and Contrast Settings Accessibility Learning Resources What Does "Accessible" Mean?# Accessible websites are ones that are created without barriers for users of various abilities to access content or perfo ..read more
Visit website
Developing For Imperfect: Future Proofing CSS Styles
Modern CSS Solutions
by Stephanie Eckles
2y ago
How do we plan future-proof styles in a world with an infinite degree of device and user ability variance? Let's explore how things can break and how modern CSS provides solutions. This episode will cover handling for: variable content length and overflow unpredictable media sizes internationalization accessibility-related user settings We'll explore creating a robust comment thread component. Here's our starting point - an exact mimic of the layout you received from design, good job! CSS for "Initial Comment Thread" .comment-list {list-style: none;padding: 0.5rem;margin: 0;display: grid;gr ..read more
Visit website

Follow Modern CSS Solutions on FeedSpot

Continue with Google
Continue with Apple
OR