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. Use vh attributes. It means viewport height and is a percentage. So height: 90vh would mean 90% of the viewport height. This works in most modern browsers. Eg. div { height: 90vh; } You can forego the rest