1 Creating Keyboard In HTML and CSS
The following keyboard images are not actually images. They are built using
div
elements and CSS grid. The grid is 29 columns by 5 rows. Most of the
div
elements span two columns. Each div
has a column class and a row
class. The column that each div
starts at is calculated in CSS. The div
elements of class, col-1
, have a --column: 1
variable, the div
elements
of class, col-2
, have a --column: 2
variable, and so on. Each keyboard
graphic is contained in a div
with class QWERTY, Dvorak, Workman, or
Colemak.