CSS Grid: 2 Column Pattern with Header and Footer

This is example shows a two column pattern, with header and footer. The centre panel contains a number of boxes. We want to have as many in each row as will fit, with the boxes lining up as rows and columns.

The fallback uses Flexbox, we need to constrain the items in the flex layout in order to get the appearance of two-dimensional alignment.

My header
Panel A
Panel B
Panel C
Panel D
Panel E
Panel F
Panel G
Panel H
Panel I
Panel J
My footer

CSS Grid: auto-fill

In this example I created the CSS Grid using minmax() with the first value of 200px which is the minimum size and the second value is the maximum. Using 1fr as the maximum value the space is equally distributed. As all the items are auto-placed on the DOM the flexible grid will move around but sill maintain their spanned size.

A
B
C
D
E
F
G
H
I
J
K
L
M

CSS: Keyframes Example

This animation was purely a simple demonstration of how powerful CSS3 keyframe animations are. I created two circles, a outer and inner using CSS and utilize CSS3 keyframes to animate a expand and contract movement. Changing the element from a circle to a square and back.

Check out the CodePen example. CSS: Keyframe aniamtions

CSS Grid: DIV tag layout example

CodePen: CSS: Grid Example

Lorem ipsum dolor site.

Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.

Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.

Lorem ipsum dolor site.
Lorem ipsum dolor site.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.
Lorem ipsum dolor site HI.

Lorem ipsum dolor site.

Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.

Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.
Lorem ipsum dolor site. Lorem ipsum dolor site.

Lorem ipsum dolor site.
Lorem ipsum dolor site.

CSS: Transform Example

This animation was purely a simple demonstration of how powerful CSS3 animations are. I decided to create a “square” in CSS and utilize CSS3 keyframes to animate a “up” and “down” movement.

Check out the CodePen example. CSS: Transform Example