#navigation-top:checked ~ .show-experience {
transform: translateZ(-150px) rotateX(-90deg);
}
#navigation-middle:checked ~ .show-experience {
transform: translateZ(-150px) rotateX(0deg);
}
#navigation-bottom:checked ~ .show-experience {
transform: translateZ(-150px) rotateX(90deg);
}
function createTable(el) {
for (let i = 0, row; i < el.length; i++) {
if (i % 7 === 0) {
row = document.createElement('tr');
thead.appendChild(row);
}
const cell = document.createElement('th');
cell.innerHTML = el[i];
row.appendChild(cell);
}
}
main.css
/* Media Queries */
/* Mobile Devices - Phones/Tablets */
@media only screen and (max-width: 991px) {
/* MOBILE NAVIGATION */
.navbar ul.nav {
display: flex;
flex-direction: column;
position: fixed;
justify-content: start;
top: 15vh;
+ left: 0;
background-color: #999;
width: 100%;
height: 100vh;
transform: translate(100%);
-webkit-transform: translate(100%);
text-align: center;
overflow: hidden;
padding: 15px 30px;
}
<div class="title"> заголовок заголовок заголовок </div>
<div class="description"> текст текст текст текст </div>
<button class="action"> кнопка </button>
body {
display: grid;
grid-template-columns: 1fr min-content;
align-items: center;
}
.title {
grid-column: 1 / -1;
}