div
ウィンドウサイズを一気に画面いっぱいに広げることができました。今、残りが互いに重ならないので、各divの中央に配置されたテキストを保持しながら、それぞれを順番にスクロールできるのではないかと思っていますか? 現在、表示されているのは 3 のみです。
私が達成しようとしていること:
注釈付きの CSS は次のとおりです。
/* Each of the divs and their independent backgrounds */
#thing1 {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:1000;
background: blue;
}
#thing2 {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:1000;
background: red;
}
#thing3 {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
z-index:1000;
background: green;
}
/* Centering the text */
#text {
width: 100px;
height: 100px;
margin: auto;
position: absolute;
top:0;
bottom: 0;
left: 0;
right: 0;
}