property

Box ordinal group — CSS reference

Deprecated historical CSS. Set a positive ordinal group for old box children. Modern order controls visual placement with integer values, but does not reorder DOM reading or keyboard order. Do not use the unprefixed historical syntax for new sites.

Formal Syntax & Structure

css syntaxcss
box-ordinal-group: 2;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>box-ordinal-group</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{display:flex;width:200px;height:100px;align-items:flex-start}#b,#c{width:40px;height:20px;background:lightblue}#a{}#b{order:1}</style><body><div id="a"><div id="b">A</div><div id="c">B</div></div></body></html>
CSS Reference