D
D
Dmitry Buravtsov2016-02-29 16:14:20
css
Dmitry Buravtsov, 2016-02-29 16:14:20

How to make the title screen of a landing page full width and height?

How to make the title screen of the landing page in full width and height for any size of the browser window. Example: takprosto.biz/im-za-vikh-i2-50

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
seredaes, 2016-02-29
@dima_bur

html, body {
height:100%;
width:100%;
padding:0px;
margin:0px;
margin:0px;
}
and now for your block set
.block {
width:100%;
height:100%;
}

S
Sergey Goryachev, 2016-02-29
@webirus

It is enough to set for the block:

block {
width:100vw;
height:100vh;
}

S
stamdyscias, 2016-02-29
@stamdyscias

You can write id for example
#first{
width: 100%; /*this width will stretch to 100%*/
height:100%; /*this is the height at 100%*/
}
And then you will have a div in which your very first screen will be and you will write there
div id="first"
here is the first block
/div

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question