I have a web design project that involves using Bootstrap 3, and I need guidance on how to achieve a specific layout in the correct way:
The layout in question consists of two divs that cover 100% of the screen at any given time. The first div needs to remain fixed at the top of the screen, while the subsequent divs should scroll on top of it, overlapping any text on the first div.
I am seeking advice on the best approach to implement this design.
html, body {
height:100%;
width:100%;
margin:0;
padding:0;
position:relative;
}
#imgDiv {
position:relative;
height:100%;
background-image:url(http://wallpapershd3d.com/wp-content/gallery/hd-wallpapers/cute-parrots-hd-wallpaper.jpg);
}
#imgDiv2 {
position:relative;
height:100%;
background-image:url(http://wonderfulengineering.com/wp-content/uploads/2014/01/digital-wallpaper-17.jpg);
}
<div id='imgDiv'></div>
<div id='imgDiv2'></div>