The CSS Flexible Box Layout — Flexbox — provides a simple solution to the design and layout problems designers and developers have faced with CSS. Let me show you how to use it to generate some common layouts and challenges that you will face in designing a responsive website design.
I assume you already know the basis of Flexbox. If not there are many documents teaching you about Flexbox. I would recommend Understanding Flexbox: Everything you need to know.
Here is What We Will Be Making
In this article, I am going to show you how to make 7 different layouts using FlexBox.
- Center image on the screen
- Responsive website layout
- AddOn for an input field
- 3 column layout
Get The Code
All of the examples that I am going to show can be downloaded from my GitHub account. The code for every example is just HTML and CSS. I have created a master homepage that provides a link to every example that we are going to cover.
CSS is based off a box model. If you have an image that is a circle that you want to wrap text around, it will wrap around the images’ bounding box.
A new CSS property called shape-outside lets you wrap text that conforms to the shape of your image.
DIYZ is the DIY app for getting detailed step-by-step instructions and how-to videos that can help you complete your home repair or renovation without ever hiring a professional handyman or contractor!
The DIYZ app has over 1 million downloads. The average user of the app spends 7.5 minutes of engagement in DIYZ. The DIY videos have generated over 2 million views on YouTube. To create this app, the development team at decided to use Google’s Polymer.js framework.
The impact of company culture is reflected in achievement of goals, productivity levels and employee satisfaction. Basically, it can make or break a business.
Yet company culture is the one thing that many aspiring programmers overlook in their job search. Unfortunately, they find out too late after accepting a job that they are working for a company with a very poor culture. That overlook can have a negative impact on one’s career as a software engineer.
To better explain the impact of company culture, let me give your first-hand experiences that I have had in my career. The examples are taken from two different companies.
The 9–5, 40-hour work week is a reflection of how work was performed back in the industrial revolution. During this time workers punched a clock to measure time worked, and management used that as a gauge of productivity.
Today’s software engineers are smart creatives who prefer to work in an autonomous environment in order to create their best work. Unfortunately, management at some companies still cling to hours worked as a barometer of productivity.
Here are examples of how management treated work hours at two different companies.
- Create an object
- Create methods and properties for that object
With functional instantiation, we first create a function. Inside the function we create an empty object and add properties and methods to it. We then return this object.
Every time the function is called we will have access to the methods that were created. Here is an example of functional instantiation: