mdui-card { margin: 3px; width: calc(25% - 6px); height: 8em; } mdui-card h1 { margin: 0; padding: 0.2em 0.2em; } mdui-layout-main { display: flex; }