VCenter/HCenter
vcenter
// 0.0.8 + vcenter.mjs
/**
* VCenter
* ----------------
* tag: <vcenter->
*/
export default class VCenter extends HTMLElement {}
// ⭐️ register <vcenter->
customElements.get('vcenter-') ||
customElements.define('vcenter-', VCenter);
/* 0.0.8 + vcenter, hcenter */
/* <vcenter> */
vcenter- {
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
}
codepen ⟩ <vcenter>, <hcenter> prototype
replit ⟩ layout (0.0.8) + vcenter, hcenter
hcenter
// 0.0.8 + HCenter.mjs
/**
* HCenter
* ----------------
* tag: <hcenter->
*/
export default class HCenter extends HTMLElement {}
// ⭐️ register <hcenter->
customElements.get('hcenter-') ||
customElements.define('hcenter-', HCenter);
/* 0.0.8 + hcenter */
/* <hcenter> */
hcenter- {
display: flex;
flex-flow: row nowrap;
justify-content: center;
align-items: center;
}
Last updated