<div> <div></div> </div>
How to make the inner div be in the center of the parent? Both units have a fixed width and height. Is it possible to make this design rubber?
<style> #outer { width: 50%; background: yellow; position: relative; height: 200px; } #inner { width: 50%; background: blue; position: absolute; top: 25%; left: 25%; height: 100px; } </style> <div id="outer"> <div id="inner"></div> </div>
http://jsfiddle.net/9Sqb3/
Source: https://ru.stackoverflow.com/questions/285758/More articles:UITableView over UIScrollViewWhat processes are hidden behind the connect command in telnet?Read file namesCSS4 parent selectorAuto-install extensions for google chromeAndroid - how to “return” to the main thread?How to prevent the removal of the application in Android?Bitrix mail php is sent only from the AdministratorString and char []Service Temporarily UnavailableAll Articles