Problem: I have the page, where first screen (regardless of the screen resolution) is completely taken by block with beautiful background and "Sign up" button at the very bottom of this block JSFiddle (it's only for mobile version of the site, but it doesn't matter in this case)
<div class="first-screen">
<div class="about">
<h1>Motto</h1>
<a href="#" class="btn btn-primary btn-block">Click here</a>
</div>
</div>
.first-screen {
position: absolute;
top: 55px;
right: 0;
bottom: 0;
left: 0;
background: url('http://placehold.it/1000x1000&text=first screen') transparent no-repeat;
background-size: 100% 100%;
padding: 0;
margin: 0;
}
Task: I need other content on the page to be displayed right after the first screen (right now it is under the .first-screen
because of position: absolute;
);
Challenge: I need this task to be solved without any JS (I can solve it using js, but I don't want to).
Any working solutions (using display: table, table-row, table-cell;
, flexboxes etc.) or any suggestions will be appreciated.
Note: it can be hacked with setting the margin-top
for the .second-screen
, but it isn't bulletproof at all.
Thanks in advance!