Skip to content

Truly independent web browser

558 B
Raw Blame
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Reference File</title>
<link rel="stylesheet" type="text/css" href="../../../fonts/ahem.css">
<style>
body {
    margin: 0;
}
.container {
    position: relative;
    width: 200px;
    height: 100px;
    background: white;
    outline: 1px solid gray;
}
.centered {
    position: absolute;
    top: 40px;
    left: 0;
    font: 20px/1 Ahem;
    color: green;
}
</style>
<p>Test passes if the green square is vertically centered in the gray box.</p>
<div class="container"><div class="centered">X</div></div>