mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
55 lines
No EOL
1.1 KiB
HTML
55 lines
No EOL
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Grid Layout Reference</title>
|
|
<link href="mailto:myst.dg@gmail.com" rel="author" title="Leo Deng">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
#caseTitle {
|
|
margin: 10px;
|
|
height: 40px;
|
|
}
|
|
#grid {
|
|
width: 450px;
|
|
position: relative;
|
|
}
|
|
.a {
|
|
background: blue;
|
|
width: 100px;
|
|
float:left
|
|
}
|
|
.b {
|
|
background: yellow;
|
|
width: 100px;
|
|
float:left
|
|
}
|
|
.c {
|
|
background: orange;
|
|
width: 100px;
|
|
float:left
|
|
}
|
|
.d {
|
|
background: cyan;
|
|
width: 100px;
|
|
float:left
|
|
}
|
|
.e {
|
|
background: pink;
|
|
width: 50px;
|
|
float:left
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p id="caseTitle">The test passes if it has the same visual effect as reference.</p>
|
|
<div id="grid">
|
|
<div class="a"> </div>
|
|
<div class="b"> </div>
|
|
<div class="c"> </div>
|
|
<div class="d"> </div>
|
|
<div class="e"> </div>
|
|
</div>
|
|
|
|
</body></html> |