Spritz Logo

Weaving the Power of the Web into Your Business!

Using Flexbox

The first 3 sections are all using the default flex property of "stretch", so the divs are all of equal height.

Two Column - Equal Width

An online presence is your single most important marketing tool. Use a firm that has the right knowledge, tools, and techniques for maximizing your website's effectiveness; use a firm that can design and develop the website that your business needs and deserves. Our web design and development services are versatile. Pellentesque at libero. In ut metus et lorem condimentum tempor. Etiam sit amet sapien. Curabitur quis tortor. Curabitur vitae pede aliquet nibh egestas scelerisque. Nulla faucibus, justo vel viverra elementum, enim lorem placerat augue, et feugiat elit odio in purus.

An online presence is your single most important marketing tool. Use a firm that has the right knowledge, tools, and techniques for maximizing your website's effectiveness; use a firm that can design and develop the website that your business needs and deserves. Our web design and development services are versatile. Pellentesque at libero. In ut metus et lorem condimentum tempor. Etiam sit amet sapien. Curabitur quis tortor. Curabitur vitae pede aliquet nibh egestas scelerisque. Nulla faucibus, justo vel viverra elementum, enim lorem placerat augue, et feugiat elit odio in purus.

Three Column - Equal Width

An online presence is your single most important marketing tool. Use a firm that has the right knowledge, tools, and techniques for maximizing your website's effectiveness; use a firm that can design and develop the website that your business needs and deserves. Our web design and development services are versatile. Pellentesque at libero. In ut metus et lorem condimentum tempor. Etiam sit amet sapien. Curabitur quis tortor. Curabitur vitae pede aliquet nibh egestas scelerisque. Nulla faucibus, justo vel viverra elementum, enim lorem placerat augue, et feugiat elit odio in purus.

An online presence is your single most important marketing tool. Use a firm that has the right knowledge, tools, and techniques for maximizing your website's effectiveness; use a firm that can design and develop the website that your business needs and deserves. Our web design and development services are versatile. Pellentesque at libero. In ut metus et lorem condimentum tempor. Etiam sit amet sapien. Curabitur quis tortor.

An online presence is your single most important marketing tool. Use a firm that has the right knowledge, tools, and techniques for maximizing your website's effectiveness; use a firm that can design and develop the website that your business needs and deserves. Our web design and development services are versatile. Pellentesque at libero. In ut metus et lorem condimentum tempor. Etiam sit amet sapien. Curabitur quis tortor. Curabitur vitae pede aliquet nibh egestas scelerisque. Nulla faucibus.


Two Column - Unequal Width

An online presence is your single most important marketing tool. Use a firm that has the right knowledge, tools, and techniques for maximizing your website's effectiveness; use a firm that can design and develop the website that your business needs and deserves. Our web design and development services are versatile. Pellentesque at libero. In ut metus et lorem condimentum tempor. Etiam sit amet sapien. Curabitur quis tortor. Curabitur vitae pede aliquet nibh egestas scelerisque. Nulla faucibus, justo vel viverra elementum, enim lorem placerat augue, et feugiat elit odio in purus.

An online presence is your single most important marketing tool. Use a firm that has the right knowledge, tools, and techniques for maximizing your website's effectiveness; use a firm that can design and develop the website that your business needs and deserves. Our web design and development services are versatile. Pellentesque at libero. In ut metus et lorem condimentum tempor. Etiam sit amet sapien. Curabitur quis tortor. Curabitur vitae pede aliquet nibh egestas scelerisque. Nulla faucibus, justo vel viverra elementum, enim lorem placerat augue, et feugiat elit odio in purus.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus eu metus. Sed auctor elementum odio. Pellentesque posuere rutrum tortor. Pellentesque sed ligula quis ligula porttitor elementum. Nam hendrerit blandit mi. Aliquam magna nibh, tincidunt quis, dignissim nec, facilisis vitae, lectus. Quisque eget quam sit amet turpis varius adipiscing.


Flexbox Sizing

This is the shorthand for flex-grow, flex-shrink and flex-basis. The 2nd and 3rd parameters (flex-shrink and flex-basis) are optional. The default flex values are:

flex: 0 1 auto;

In other words, the item won't grow, but it will shrink.

flex: 1 100px;
is the same as this:
flex-grow: 1;
flex-basis: 100px;

It leaves the flex-shrink property alone, which would be flex-shrink: inherit; (it defaults to 1).

 

 

Common values for flex

flex: 0 auto;

This is the same as flex: initial; and the shorthand for the default value: flex: 0 1 auto. It sizes the item based on its width/height properties (or its content if not set). It makes the flex item inflexible when there is some free space left, but allows it to shrink to its minimum when there is not enough space. The alignment abilities or auto margins can be used to align flex items along the main axis.

flex: auto;

This is equivalent to flex: 1 1 auto. Beware, this is not the default value. It sizes the item based on its width/height properties, but makes it fully flexible so that they absorb any extra space along the main axis. If all items are either flex: auto, flex: initial, or flex: none, any remaining space after the items have been sized will be distributed evenly to the items with flex: auto.

flex: none;

This is equivalent to flex: 0 0 auto. It sizes the item according to its width/height properties, but makes it fully inflexible. This is similar to flex: initial except it is not allowed to shrink, even in an overflow situaion.

flex: <positive number>. flex: <positive-number> 1 0px It makes the flex item flexible and sets the flex basis to zero, resulting in an item that receives the specified proportion of the remaining space. If all items in the flex container use this pattern, their sizes will be proportional to the specified flex factor.