/* entire container, keeps perspective */ .three-inline-buttons .button { margin-left: 15px; margin-right: 15px; } .three-inline-buttons { display: table; margin: 0 auto; } @media only screen and (max-width: 960px) { .three-inline-buttons .button{ width: 100%; margin: 20px; text-align: center; } } #img1 {height: 450px; width: 360px; } #img2 {height: 450px; width: 360px; } #img3 {height: 450px; width: 360px; } .flip-container { width:1000px; margin-left:70px; } /* flip the pane when hovered */ .flip-container:hover .flipper, .flip-container.hover .flipper { transform: rotateY(180deg); } .flip-container, .front, .back { width: 320px; height: 600px; } /* flip speed goes here */ .flipper { transition: 0.6s; transform-style: preserve-3d; position: relative; } /* hide back of pane during swap */ .front, .back { backface-visibility: hidden; position: absolute; top: 0; left: 0; } #btn { width: 50%; margin-left: 100px; margin-top: -102px; background-color: #1abc9c; } /* front pane, placed above back */ .front { z-index: 2; /* for firefox 31 */ transform: rotateY(0deg); } /* back, initially hidden pane */ .back { transform: rotateY(180deg); } #service { position:relative; width:150%; }