CSS.EXE

PRESS START

Legend - CSS Units

CSS units define the size and spacing of elements on the screen.

They tell the browser how much space to use and relative to what.

Some units are fixed, like px. Others are flexible, like % or rem.

Understanding units is key to building responsive, scalable layouts.

View them below to gain a better understanding.

%

em

rem

ch

vh

vw

vmin

vmax

CSS Layouts: Grid One

CSS Grid is a powerful tool for building two-dimensional layouts.

It lets you place items into rows and columns with precision.

Click the button below to learn more more about grid layouts.

Player 1

player1

Player 2

Player 3

Player 4

Grid Two

In this next example we have set up a more one-dimensional grid,

click the play buttons below on each special move for more information on the grid layout.

Groundbot's Orbital Laser

laser-beam

Knight's Emperor Swing

sword-swing

Dragon's Fireball

dragon-fireball

Airbot's Blast Fist

airbot-cannon

CSS Layouts: Flex One

Flexbox is built for one-dimensional layout control.

It’s fast, responsive, and surprisingly flexible.

But don’t flex without knowing the basics.

Click the buttons below to learn more.

Player 1

heart-icon

HP: 900

flame-icon

DPS: 450

flash-icon

SPEED: 225

battery-icon

ENERGY: 700

ground-icon

TROOP: GROUND

Player 4

heart-icon

HP: 800

flame-icon

DPS: 700

flash-icon

SPEED: 350

battery-icon

ENERGY: 550

wind-icon

TROOP: AIR

Flex Two

Round two. The stage is set. The layout’s trickier.

Flex Two brings new combos, tighter layouts, and sharper control.

Click the button found below to learn more.

Player 1

player1
heart HITPOINTS (HP)
flame DAMAGE PER SECOND (DPS)
flash SPEED
battery ENERGY

Player 4

player-4
heart HITPOINTS (HP)
flame DAMAGE PER SECOND (DPS)
flash SPEED
battery ENERGY