I am trying to get this design: 
but I have problems with the logo and twists, I donβt know how to add them. I tried with absolute positioning, but when resizing the website, the logo and curls end up somewhere other than the squares of the images.
How to add curls and logo?
JSFiddle: http://jsfiddle.net/uHsJv/1/
When you want to edit the JS script, in the image folder on my site you can find the following images:
- logo (images / logo.png or images / logogroot.png)
- two vortices on top, including the logo (images / boven.png)
- two vortices at the bottom (images / onder.png)
- full background (images / achtergrond.png)
Current HTML:
<div class="outer"><div class="middle"><div class="wrap"> <div class="box side left"> <a href="#" class="boxInner innerLeft"> <div class="overlay hover"></div> </a> </div> <div class="boxWrap"> <div class="leftUp"> <a href="#" class="boxInner innerLeftUp"> <div class="overlay blue"></div> </a> </div> <div class="leftDown"> <a href="#" class="boxInner innerLeftDown"> <div class="overlay blue"></div> </a> </div> </div> <div class="box"> <a class="boxInner innerMiddle"> <div class="overlay white"></div> </a> </div> <div class="boxWrap"> <div class="rightUp"> <a href="#" class="boxInner innerRightUp"> <div class="overlay blue"></div> </a> </div> <div class="rightDown"> <a href="#" class="boxInner innerRightDown"> <div class="overlay blue"></div> </a> </div> </div> <div class="box side right"> <a href="#" class="boxInner innerRight"> <div class="overlay hover"></div> </a> </div> </div></div></div>
Current CSS:
body { margin: 0; padding: 0; background-color:#1b1b1b; } .outer{ display: table; position: absolute; height: 100%; width: 100%; } .middle{ display: table-cell; vertical-align: middle; } .wrap { margin-left: auto; margin-right: auto; height:100%; overflow: hidden; -webkit-box-align:center; -webkit-box-pack:center; display:-webkit-box; } .box { float: left; position: relative; width: 24.45%; padding-bottom: 24.45%; margin:auto; top: 0; left: 0; bottom: 0; right: 0; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } .side { width: 17.57%; padding-bottom: 17.57%; } .left{ left:3%; } .right{ left:-3%; } .boxWrap{ float: left; position: relative; width: 11.49%; margin:auto; padding:0; top: 0; left: 0; bottom: 0; right: 0; } .leftUp, .leftDown, .rightUp, .rightDown{ width: 100%; padding-bottom:100%; position:relative; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -o-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } .leftUp, .leftDown{ margin-left:7%; } .rightUp, .rightDown{ margin-left:-7%; } .leftDown, .rightDown{ margin-top:38%; } .boxInner { position: absolute; left: 10px; right: 10px; top: 10px; bottom: 10px; overflow: hidden; margin:0; padding:0; background-size:cover; background-repeat: no-repeat; } .innerLeft{ background-image:url('../images/home_links.png'); } .innerMiddle{ background-image:url('../images/home_midden.png'); } .innerRight{ background-image:url('../images/home_rechts.png'); } .innerLeftUp{ background-image:url('../images/home_linksB.png'); } .innerLeftDown{ background-image:url('../images/home_linksO.png'); } .innerRightUp{ background-image:url('../images/home_rechtsB.png'); } .innerRightDown{ background-image:url('../images/home_rechtsO.png'); } .overlay{ height:100%; z-index:2; overflow:hidden; margin:0; padding:0; } .blue{ background: rgba(0,101,147,0.40); } .blue:hover{ background: rgba(185,185,185,0.40); } .hover:hover{ background: rgba(245,245,245,0.40); } .blue:active, .hover:active{ background: rgba(178,46,47,0.40); }
source share