Skip to content

Instantly share code, notes, and snippets.

@martajohnsson
martajohnsson / index.html
Created December 7, 2021 20:53 — forked from Jimmydalecleveland/index.html
Minimal example of state and class instantiation/presentation from JS to HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Html JS class example</title>
</head>
<body>
<h1>HTML JS Class Example</h1>
/* Align vertically a column */
.v-align {
float: none;
display: inline-block;
vertical-align: middle;
}