M
M
mr_blond972016-01-28 17:31:39
css
mr_blond97, 2016-01-28 17:31:39

How to layout a div and an image so that their total height is equal to the height of the screen?

How do I make the sum of the heights of the fixed-height div and the image equal the height of the screen?
q18.png?extra=i8Corv8sWUryeg_n6m1auyZM3v

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aksigera, 2016-01-28
@Aksigera

You can use flexbox, you can -
div{ height:calc(100vh-how manypx); }
img{ height:how manypx }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question