Diamond Shaped Grid using css ( Source Code ) Add font awesome cdn HTML CSS body { background:linear-gradient(to left, #1F8CAA, #68CCE5); color:#000000; font:13px georgia, serif; line-height:1.4; font-weight: lighter; } .wrapper { padding-top: 160px; transform: rotate(45deg); -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); padding-left: 100px; } .box { background-color: #262626; display: inline-block; height: 100px; overflow: hidden; width: 100px; } .box:hover { background-color: #fff; } .box p { transform: rotate(-45deg); -ms-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); padding: 5px; font-size: 25px; } .box p i{ color: #fff; } .box:hover i{ color: #262626; }
No comments