<!
DOCTYPE HTML >
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<
html ><
head >
<
meta charset=
"utf-8" >
<
title >Reference: grid abs.pos. child in grid with gutters</
title >
<
link rel=
"author" title =
"Mats Palmgren" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1230695 " >
<
style type=
"text/css" >
body { width:
800 px; }
.grid {
display: block;
position: relative;
grid-template-columns: repeat(
5 ,
20 px);
grid-auto-rows:
10 px;
grid-gap:
100 px
10 px;
border:
1 px solid;
padding:
0 3 px
0 5 px;
height:
40 px;
margin-bottom:
2 px;
}
.grid.r {
grid-template-columns:
20 px;
grid-template-rows: repeat(
5 ,
20 px);
height:
160 px;
padding:
2 px
3 px
4 px
5 px;
float: left;
min-width:
70 px;
margin-right:
2 px;
}
x {
position: absolute;
width:
20 px;
height:
10 px;
background: lime;
}
a {
position: absolute;
left:
0 ; right:
0 ; bottom:
20 px; height:
3 px;
background: black;
}
b {
position: absolute;
left:
0 ; right:
0 ; bottom:
10 px; height:
3 px;
background: grey;
}
c {
position: absolute;
left:
0 ; right:
0 ; bottom:
0 ; height:
3 px;
background: blue;
}
.r a {
left:
50 px; top:
0 ; bottom:
0 ; width:
3 px; height:auto;
}
.r b {
left:
40 px; top:
0 ; bottom:
0 ; width:
3 px; height:auto;
}
.r c {
left:
30 px; top:
0 ; bottom:
0 ; width:
3 px; height:auto;
}
x:nth-of-type(
1 ) { left:
5 px; }
x:nth-of-type(
2 ) { left:
125 px; }
x:nth-of-type(
3 ) { left:
245 px; }
x:nth-of-type(
4 ) { left:
365 px; }
.r x { left:
5 px; height:
20 px; }
.r x:nth-of-type(
1 ) { top:
2 px; }
.r x:nth-of-type(
2 ) { top:
32 px; }
.r x:nth-of-type(
3 ) { top:
62 px; }
.r x:nth-of-type(
4 ) { top:
92 px; }
.s x:nth-of-type(
1 ) { left:
120 px; }
.s x:nth-of-type(
2 ) { left:
255 px; }
.s x:nth-of-type(
3 ) { left:
390 px; }
.s x:nth-of-type(
4 ) { left:
525 px; }
</
style >
</
head >
<
body >
<
div class=
"grid" >
<x></x><x></x><x></x><x></x>
<a
style =
"left:125px; width:140px" ></a><b
style =
"width:265px" ></b><c
style =
"left:365px" ></c>
</
div >
<
div class=
"grid" >
<x></x><x></x><x></x><x></x>
<a
style =
"left:5px; width:260px" ></a><b
style =
"width:5px" ></b><c
style =
"left:5px" ></c>
</
div >
<
div class=
"grid" >
<x></x><x></x><x></x><x></x>
<a
style =
"left:505px" ></a><b
style =
"width:505px" ></b><c
style =
"left:505px" ></c>
</
div >
<
div class=
"grid s" >
<x></x><x></x><x></x><x></x>
<a
style =
"left:255px; width:155px" ></a><b
style =
"width:410px" ></b><c
style =
"left:525px" ></c>
</
div >
<
div class=
"grid s" >
<x></x><x></x><x></x><x></x>
<a
style =
"left:120px; width:290px" ></a><b
style =
"width:120px" ></b><c
style =
"left:120px" ></c>
</
div >
<
div class=
"grid s" >
<x></x><x></x><x></x><x></x>
<a
style =
"left:680px" ></a><b
style =
"width:680px" ></b><c
style =
"left:680px" ></c>
</
div >
<
div class=
"grid r" >
<x></x><x></x><x></x><x></x>
<a
style =
"top:32px; height:50px" ></a><b
style =
"height:82px" ></b><c
style =
"top:92px" ></c>
</
div >
<
div class=
"grid r" >
<x></x><x></x><x></x><x></x>
<a
style =
"top:2px; height:80px" ></a><b
style =
"height:2px" ></b><c
style =
"top:2px" ></c>
</
div >
<
div class=
"grid r" >
<x></x><x></x><x></x><x></x>
<a
style =
"top:142px" ></a><b
style =
"height:142px" ></b><c
style =
"top:142px" ></c>
</
div >
</
body >
</
html >
Messung V0.5 in Prozent C=100 H=100 G=100
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-05)
¤
*© Formatika GbR, Deutschland