My Flexbox Website

Flexbox Template #204

Top Section

The term Flexbox Template is actually a misnomer.

This top section is a demonstration of using conventional CSS and Flexbox on the same page..

Get started right by thinking of flexbox as just another tool that makes structuring web pages with columns a lot easier.

The drop down menu on the left is made using an unordered list and the float property is used to position it to the left.*

The header, the 3 columns below and the footer were created using flexbox.

Less is More

I've tried to construct these templates with as little HTML code as possible. Flexbox is the same. With flexbox, less is more. Let it do the work of controlling page structure. It isn't designed for text flow or image placement.

NOTE:* If you are viewing this page using a device with a viewport width less than 800px, the Modal Menu is activated.

 
204 Template Kit

Drop down Menu

The style sheet for the drop down menus is one from our free navbar collection. It was installed by adding a linked style sheet in the head section of the template document.

It is coupled with the Modal Menu (javascript) that kicks in for smaller devices when the drop down menu is hidden.

204 Template Kit

Flexbox

Believe it or not the first draft of Flexbox Layout was added in 2008. Since then it has been revised several times and become more efficient and user friendly.

It was completely rewritten in 2013 and minor revisions have been added since that time.

204 Template Kit

Optimize Images

The best way to optimize your images these days is to convert them to one of the newer file formats. We demonstrate using an avif image and providing the fallback png image for older browsers.

There are a lot of fallback codes out there that don't work. This one does.

Top