Это мой текущий HTML-код:
Код: Выделить всё
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #24576c;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#box {
width: 80%;
background-color: #D5C6EE;
border: 1px solid #ccc;
border-radius: 10px;
padding: 20px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
justify-content: space-between;
height: auto;
}
#title {
text-align: center;
margin-bottom: 10px;
font-weight: bold;
}
#underline {
border: none;
height: 2px;
background-color: #131E62;
width: 100%;
margin-bottom: 20px;
}
#content {
font-size: 20px;
text-align: justify;
line-height: 1.6;
flex-grow: 1;
}
.button {
display: flex;
justify-content: center;
margin-top: 20px;
}
#know-more-button {
text-decoration: none;
background-color: #AABFEF;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
}
#know-more-button:hover {
background-color: #0056b3;
}
body {
background-image: url("https://c.wallhere.com/photos/c6/5c/chemistry_science_laboratories-1697571.jpg!d");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
height: 100vh;
margin: 0;
}Код: Выделить всё
Chem project
Brief Introduction
content
[url=secondpage.html]Know More[/url]
Все оказывается хорошо, кроме кнопки "узнать больше" что я ожидал оказаться на дне коробки. (показано ниже)

Хочу попросить вашей помощи, чтобы кнопка появилась в нужном месте.
Подробнее здесь: https://stackoverflow.com/questions/791 ... m-of-a-box
Мобильная версия