Как исправить заголовок и контент с помощью HTML CSS? [закрыто]CSS

Разбираемся в CSS
Anonymous
Как исправить заголовок и контент с помощью HTML CSS? [закрыто]

Сообщение Anonymous »

Я исправляю заголовок на каждой странице печати, но когда мой контент большой, мой контент скрывается за заголовком после разрывов страниц < /p>

Код: Выделить всё

margin: 0;
font-family: Arial,
sans-serif;
}

` `.container {
padding: 20px;
box-sizing: border-box;
}

.fixed {
position: fixed;
top: 0;
width: 100%;
background-color: #f4f4f4;
border-bottom: 1px solid #ccc;
z-index: 1000;
}

.scrolling {
margin-top: 100px;
/* Adjust this value based on the height of the fixed container */
background-color: #eaeaea;
padding: 20px;
height: 200vh;
/* Makes the container scrollable by extending its height */
}< /code>


Fixed Container
This container stays fixed at the top when scrolling.
`

Scrolling Container
This container scrolls with the rest of the page.
Content...
More content...
Even more content...
Keep scrolling...
Almost there...
You've reached the end!



Подробнее здесь: https://stackoverflow.com/questions/797 ... g-html-css

Вернуться в «CSS»