Hello, can anyone help me code this?

“The Homepage Grid”

Background

I am designing a homepage in a three-column grid format.

Articles that appear in the homepage grid can be given a layout value which determines how many columns they take up. Articles can be one-column, two-column, or three-column.

Each of the columns are 300 pixels wide, giving a total grid width of 900...