Sign in
chromium
/
external
/
w3c
/
web-platform-tests
/
refs/tags/epochs/three_hourly/2021-03-16_06H
/
.
/
css
/
css-sizing
/
div-auto-margin-ref.html
blob: 1934dd81ed142520858c2cd5964239b31efa7ce1 [
file
] [
log
] [
blame
]
<!DOCTYPE HTML>
<title>
Ensure element is centered by auto margin
</title>
<style>
div
{
inset
:
0
;
background-color
:
black
;
margin
:
auto
;
position
:
absolute
;
block-size
:
200px
;
inline-size
:
100px
;
border
:
5px
solid red
;
}
</style>
<div></div>