In Opera, Explorer and Firefox, the height specified in percent is not perceived!
What to do if you need to set the height in percent?
Website with a problem: https://invest-apartments.ru .
In Opera, Explorer and Firefox, the height specified in percent is not perceived!
What to do if you need to set the height in percent?
Website with a problem: https://invest-apartments.ru .
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
In order for the height to work in Explorer, Opera and Firefox need all blocks in which your block is wrapped to register a height value of 100% . And at body try to register height of 100% .
And, by the way, in order to avoid white indentation around the edges of the body page, specify more attributes margin:0; padding: 0; margin:0; padding: 0;
From all seen, the conclusion suggests itself that you have just begun to take the first steps in this direction. Go through to start the html basics and css .
Set the height in vh (viewport height) - the units that specify the height in percent of the screen height.
To your unit occupied 50% of the height of the screen, set it height: 50vh; .
Source: https://ru.stackoverflow.com/questions/256935/
All Articles