concept
dom-order — CSS reference
DOM order is the sequence of nodes in the tree, not their painted positions. Ordinary sequential focus navigation follows logical order unless explicit focus-order mechanisms change it.
Formal Syntax & Structure
css syntaxcss
order: -1; /* example */Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS flex layout lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#p{display:flex;width:300px;height:120px;background:#e6eef2;align-items:flex-start} #p>*{box-sizing:border-box;flex:none;width:60px;height:30px;background:#128579;color:white} #b{background:#326c9d} #c{background:#6655a0}#b{order:-1}</style><body><div id="p"><button id="a">First</button><button id="b">Second</button><button id="c">Third</button></div></body></html>