Код: Выделить всё
.CategoryBlock {
margin-top: 0.5rem;
gap: 1rem;
display: flex;
overflow-x: scroll;
scrollbar-width:thin;
}
.CategoryBlock > *:first-child {
margin-left: auto;
}
.CategoryBlock > *:last-child {
margin-right: auto;
}
.CategoryBlock button {
font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-size: 2rem;
border: 0;
color:#2e652d;
background-color: white;
position: relative;
}
.CategoryBlock button:hover {
color: #51b44f
}
.Categories {
position: absolute;
display: none;
border: #2e652d;
background-color: hsl(0, 0%, 95%);
border-color: #2e652d;
border-style: solid;
border-width: thin;
max-width: 10rem;
}
.DropDown a {
display: block;
text-decoration: none;
color: #63815f;
font-family: "Roboto", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
font-size: 1.125rem;
margin: 0rem 0.5rem 1rem 0.5rem;
}
.DropDown a:hover {
text-decoration: underline;
}
.DropDown:hover .Categories {
display:block;
}
Код: Выделить всё
Articles
Feature articles
Opinion articles
Informative
Short stories
Narratives
Retellings
Poetic
Essays
Persuassive
Summaries
Book reviews
Debates
Scientific reports
Physics
Chemistry
Devlogs
Physom
Automatic Page Generator
Programs
Physom
Automatic Page Generator
Raytracer
3D renderer
Math
Discrete
Linear Algebra
PreCalculus
Calculus
Было бы очень полезно, если бы кто-нибудь указал мне в правильном направлении!
Подробнее здесь: https://stackoverflow.com/questions/790 ... n-is-moved
Мобильная версия