Published in: CSS
The statements beginning with a pound (#) are only read by Internet Explorer. All other lines ignore these statements. For some layouts you may need to set the container's position to absolute for all browsers -- simply remove the pound and change the value appropriately. If you want to horizontally align the inner div add text-align:center to either the container or the hackouter blocks.
#container{ display: table; #position: relative; overflow: hidden; } #hackouter { #position: absolute; #top: 50%; display: table-cell; vertical-align: middle; } #hackinner { #position: relative; #top: -50%; }
You need to login to post a comment.
