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

Программисты Html
Ответить
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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

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