Спасибо.
Код: Выделить всё
title
[*]
About
Resume
Projects
[list]
[url=projects.html]Kalkulacka[/url]
[*][url=projects.html]Projekt2[/url]
[*][url=projects.html]Projekt3[/url]
[/list]
© 2024
Код: Выделить всё
:root {
--light-gray: #979797;
--dark-gray: #3D3D3D;
--orange: #ff8400;
--gray: #808080;
}
.buttons_home {
display: flex;
justify-content: center;
gap: 5%;
margin-top: 10%;
}
.home_button {
background-color: transparent;
color: white;
border: 2px solid white;
padding: 5% 10%;
cursor: pointer;
font-family: "Montserrat", sans-serif;
font-weight: 700;
font-size: 150%;
text-decoration: none;
display: block;
width: 27%;
text-align: center;
}
.content {
padding: 20px;
display: flex;
flex-direction: column;
background: black;
flex-grow: 1;
}
/* Project dropdown */
.dropdown .home_button {
width: 100%;
padding: 20% 10%;
box-sizing: border-box;
}
.dropdown {
position: relative;
width: 27%;
}
.project_menu {
display: none;
background-color: transparent;
border: 2px solid white;
box-sizing: border-box;
margin-top: 2px;
}
.project_menu ul {
list-style: none;
margin: 0;
padding: 0;
}
.project_menu li a {
color: white;
padding: 5%;
display: block;
text-decoration: none;
text-align: center;
box-sizing: border-box;
}
.project_menu li a:hover {
color: var(--orange);
}
.dropdown:hover .project_menu {
display: block;
position: relative;
width: 100%;
}
.footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: #000 url(bg.webp) repeat 0 0;
color: #edf0f1;
font-family: "Montserrat", sans-serif;
font-weight: 500;
font-size: medium;
border-top: 2px solid var(--orange);
position: relative;
}
.footer p {
margin: 0;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
Я пытался изменить положение на абсолютное, что не влияет на кнопки, но не сдвигает нижний колонтитул .
Код: Выделить всё
.dropdown:hover .project_menu {
display: block;
position: absolute;
width: 100%;
}
Как это должно выглядеть при наведении курсора на кнопку «Проекты»:
Ожидаемый результат
Подробнее здесь: https://stackoverflow.com/questions/786 ... er-buttons
Мобильная версия