Tag Info

New answers tagged

0

Fran├žois REMY wrote: Hi Lonnie, I think your pain is valid, and important. You'll be happy to learn that there are currently proposals for "module-like" local viewports similar to what you want. An example (taken at random, of course) would be my own proposal http://fremycompany.com/TR/2012/ED-css-viewport/ (which should probably mention that the "vh" and ...


1

Set the div's style to position: absolute or position: relative. Set the div's children to position: absolute. Position the children using % dimensions. Example (http://jsfiddle.net/o697zdeg/): <div style="position: relative; border: 5px solid red; width: 100px; height: 100px"> <div style="position: absolute; top: 0; bottom: 0; width: 50%; ...



Top 50 recent answers are included