Naming Things In CSS Grid Layout
CSS font-display: The Future of Font Rendering on the Web
One of the downsides of using web fonts is that if a font is not available on a user’s device, it must be downloaded. This means that before the font becomes available the browser has to decide how to handle the display of any block of text that uses that font. And it needs to do so in a way that doesn’t significantly impact the user experience and perceived performance. In the course of time, browsers have adopted several strategies to mitigate this problem. But they do this in different ways and out of the control of developers, who have had to devise several techniques and workarounds to overcome these issues. Enter the font-display descriptor for the @font-face at-rule. Using font-display Before looking in detail at the various features offered by font-display, let’s briefly consider how you might use the feature in your CSS. First of all, font-display is not a CSS property but, as mentioned in the intro, it is a descriptor for the @font-face at-rule. autoblockswapfallbackoptional
Writing HTML with accessibility in mind – A List Apart Sidebar – Medium
Without further ado, here are my accessibility tips: It’s important to define the natural language of your document Telling the browser which language you are using in your document has many benefits. <html lang="en"> …</html> Watch a demonstration of the lang attribute in use on YouTube. If you switch language within a document you can use the lang attribute on specific tags.(2) <p>There is a certain <i lang="fr" class="idiomatic">je ne sais quoi</i> in the air. Make sure to always define the right language. You can hide content using the hidden attribute If you want to hide content visually and from screen readers, use the hidden attribute. Browser support for the hidden attribute is very good, except for IE 10 and lower. Sometimes it’s better to add a blank alt attribute to an <img> element If an image is used as content, apply the alt attribute to describe the images content and function succinctly. It’s important that you don’t omit the alt attribute. <! <! <! <body> <header><! <! Going beyond
An event for CSS position:sticky | Web | Google Developers
Here's a secret: You may not need scroll events in your next app. Using an IntersectionObserver, I show how you can fire a custom event when position:sticky elements become fixed or when they stop sticking. All without the use of scroll listeners. There's even an awesome demo to prove it: Introducing the sticky-change event An event is the the missing feature of CSS position:sticky. One of the practical limitations of using CSS sticky position is that it doesn't provide a platform signal to know when the property is active. Take the following example, which fixes a <div class="sticky"> 10px from the top of its parent container: Wouldn't it be nice if the browser told when the elements hits that mark? Apply a drop shadow to a banner as it sticks.As a user reads through your content, record analytics hits to know their progress.As a user scrolls the page, update a floating TOC widget to the current section. The demo uses this event to headers a drop shadow when they become fixed. The CSS
Fundamentals of Responsive Images
People don’t want to wait around longer than necessary, though. Any benefit you get from a great image vanishes once someone’s neck begins to tense up as the loading bar slowly creeps from one side of the URL bar to the other. Images also lose their emotional impact if they’re blurry and someone has to squint to see the subject. If you take an image that looks nice and crisp on a phone, then share that same file on a big desktop screen, it’s going to look fuzzy. We want the best of both worlds: images that look great no matter which screen they’re viewed on, while loading as quickly as possible. Thankfully there’s a great solution to this problem due to the work of the Responsive Images Community Group. There are a lot of great resources that help explain the new responsive images specification. In this article, I’ll be explaining some of the key concepts for responsive images, as well as providing an overview of a few different responsive image tactics. Let the browser choose with srcset
Writing CSS with Accessibility in Mind – Manuel Matuzovic – Medium
While this wide range of properties and endless ways of solving tasks with CSS makes our lives easier, it also creates the potential to worsen the experience for our users. It’s actually possible to make a website inaccessible in just three lines of CSS. In this post I’ve collected techniques, considerations and approaches that will help you write more accessible CSS. The collection starts with basic concepts and well-known properties and covers some of the newer stuff at the end. In the end it got way bigger than expected, so here’s a handy menu so you can jump directly to a section that interests you the most: Enjoy! From legible to readable text Images, icons and videos are an integral part in today’s web design, but text still makes up the majority of content on most websites. Increasing font size There was a time were a 12px font size for body text was standard, but with the rise of devices with higher resolutions the average font size settled somewhere between 15 and 18px for a while.
Bootstrap 4.1.1 · Bootstrap
30 Apr 2018 We’re a few weeks out from v4.1 and we have our first patch release of Bootstrap 4! It’s a straightforward set of bug fixes and build tool quality of life updates. Here’s a quick rundown of some of the changes: Added validation styles for file inputs Improved printing of dark tables Suppressed that text-hide deprecation notice by default Fixed an issue where Collapse wasn’t working in Internet Explorer Cleaned up some JS globals and improve coverage Bumped dependencies, namely Jekyll Fixed docs issue with incorrect name for our monospace font utility Checkout the full v4.1.1 ship list and GitHub project for the full details. <3,@mdo & team
InformatiqueNews.fr - Actus, Dossier, Tendances informatique et télécoms
Langage de programmation
Les langages de programmation permettent de décrire, d'une part, les structures des données qui seront manipulées par l'appareil informatique, et, d'autre part, d'indiquer comment sont effectuées les manipulations et selon quels algorithmes. Ils servent de moyens de communication par lesquels le programmeur communique avec l'ordinateur, mais aussi avec d'autres programmeurs ; les programmes étant d'ordinaire écrits, lus, compris et modifiés par une équipe de programmeurs[3]. Plusieurs environnement de développement et agents conversationnels possèdent des fonctionnalités de lecture, interprétation et écriture de programme. La possibilité d'écriture abstraite libère l'esprit du programmeur d'un travail superflu, notamment de prise en compte des spécificités du matériel informatique, et lui permet ainsi de se concentrer sur des problèmes plus avancés[2]. Les premiers langages de programmation ont été créés dans les années 1950, en même temps que l'avènement des ordinateurs. Le vocabulaire