A div with auto resize when changing window width\height
问题 I've looked everywhere . and still couldn't come up with sample code of a very "basic" idea: A div that is taking 90% of the screen size and it is adjusting itself whenever the browser size changes (to take 90% of the relative screen) The nested divs inside it should re size themselves as well.. is it even possible? EDIT: width 90% is not working when i try to re size the screen vertically. 回答1: Use vh attributes. It means viewport height and is a percentage. So height: 90vh would mean 90% of