×

- Home
- Interior Pages
  - Using Images
  - Creating Columns
  - Modern Design
- Other Templates
  - Multi Page/Multi
    - Flexbox #501
    - Flexbox #502
    - Flexbox #503
    - Flexbox #504
    - Flexbox #505
    - Flexbox #506
- Download It

# Dark Mode Template#1

Actually, flexbox is just another tool that you can add to your web development arsenal.

It takes all the work out of structuring a page with multiple columns. No more left, right, middle , inner-left or inner-third and sitting with a calculator figuring margins and padding. See: Columns with Flexbox

## The New Image File Formats

The large picture above is a great example of why to use the new image file formats. The png vesrion of the same picture is 1.1mb in size. The avif version that you are viewing is 93.2k. Imagine the difference in loading time if you had a page full of large png images.

## 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.

## 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.

## 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.

## 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