Skip to content

Commit

Permalink
add Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
GamingHackintosh committed Mar 5, 2024
1 parent c82947b commit f8e18bd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Style/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ body {
text-align: center;
}



#search-input {
width: 300px;
padding: 10px;
Expand All @@ -15,3 +17,18 @@ body {
#results {
margin-top: 20px;
}


/*===== Самый низ =====*/
footer {
background-color: #333;
border-radius: 50px;
color: #fff;
text-align: center;
padding: 20px 0;
position: fixed;
bottom: 0;
left: 50%; /* Центрирование по горизонтали */
transform: translateX(-50%); /* Сдвиг на половину ширины футера назад */
width: 40%; /* Или 100%, если нужно на всю ширину */
}
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ <h1>История России</h1>
<button id="search-btn">Поиск</button>
<div id="results"></div>
</main>

<footer>
<p>&copy; г. 2024 @GamingHackintosh. All Rights Reserved.</p>
</footer>
<script src="JS/main.js"></script>
</body>
</html>

0 comments on commit f8e18bd

Please sign in to comment.