The CSS Flexbox Specification is a CSS module that gives you great flexibility when creating layouts.
CSS Flexbox is an elegant and lightweight approach to layouts. It can be used without installing an extra frameworks or libraries.
Flexbox is different from the regular layouts because you can lay out items inside a flex container in all possible directions. This means that your layouts can be organize top to bottom, bottom to top, left to right or right to left.
By default, a Drupal 8 user account collects only very basic information about the user.
And, most of that information is not visible to visitors or other users on the site.
Fortunately, Drupal makes it easy to modify and expand this profile so that people can add useful information about themselves such as their real name (versus a username), address, employer, URLs, biography, and more.
Google Maps don't look appealing or pretty by default when you embed them in your Drupal content. Nor do they always nicely coordinate with your site look and feel.
What if you found a way to give them a custom design? For example - your own color? In this tutorial, you will learn how to give your Drupal Google Maps a custom style with the Styled Google Map contrib module.
For the last two decades, we've relied on CSS to lay out websites, but it has always been missing some key functionality. We've relied on workarounds such as tables, floats, and positioning.
CSS Grid is different and better.
CSS Grid allows you to create a grid-based layout system, using columns and rows. You don't have to use any workarounds. You don't have to use different hacks for different browsers. You don't have to install any extra frameworks.
Because it's such a useful tool, we wrote CSS Grid Explained. CSS Grid Explained is a fun, practical introduction to CSS Grid. This was the 10th book from OSTraining, and also one of our most popular. So we've been working on big updates for the book.
One of Drupal’s big advantages is its possibility to structure content with the use of fields. However, from time to time you will want to link a file to your content without the need of adding a field to the database for that purpose.
The D8 Editor File Upload module provides this functionality by adding a button to the toolbar of the rich text editor (in this case CKEditor). This way it is possible to upload a file and present it within the content as a link. This tutorial will expĺain the usage of this module.
It's amazing how much has been written about the new Gutenberg editor for WordPress.
But many people haven't really started to the use Gutenberg in the daily publishing workflow. As a result, Gutenberg is still full of semi-secret features.
One such feature is the "Pre-Publish Checks" screen in Gutenberg. When you click "Publish" on a post, you'll now see the sidebar shown below. WordPress asks "Are you ready to publish?" and encourages you to double-check your settings:
WordPress has one of the most powerful revision systems available on any blogging platform.
When you start writing in WordPress, your changes will be automatically and safely saved. And, if you want to compare your current version of a post to an old version, WordPress gives you an easy side-by-side comparison. The image below shows a revision comparison in WordPress - the old content is marked in red and the new content is in green.
In the previous tutorials of the "CSS Flexbox" series, you learned that the flex-grow property specifies how items expand relative to each other to fill up the available remaining space within the flex-container.
You also learned that flex-shrink sets how items shrink relative to each other if there is not enough space available within the flex-container. The flex-basis property assigns a fixed, ideal width (or height) to the flex-items.
All these properties can be summed up in one shorthand property, the flex property.
Tables are often the best way to display complicated information but they can be difficult to make attractive.
Tables can be used to display information that needs to be compared in order for it to make sense. But sometimes they can be difficult to read and even harder to put into documents. Updating them can also be difficult if information needs to be reorganized or updated.
TablePress is an easy-to-use plugin for WordPress. It lets you create and manage beautiful tables without having to code anything. You can embed tables into posts, pages, or text widgets using a shortcode.
In the third tutorial of this series, you learned that the align-items flexbox property specifies how flex-items are distributed along the cross axis of the flex-container. The align-content property specifies how the lines inside the container will be distributed, once you have applied the flex-wrap property.
The align-content property accepts 6 possible values: