[html]<div style="display: flex; margin: 16px 0; border: 1px solid #68756a; border-radius: 8px; overflow: hidden; background-color: #68756a;">
<!-- Фиксированная картинка слева -->
<div style="flex: 0 0 150px; background-color: #68756a;">
<img src="https://upforme.ru/uploads/000b/49/16/2/69239.png"
alt="Изображение"
style="width: 100%; height: 100%; object-fit: cover;">
</div>
<!-- Правая часть с двумя строками -->
<div style="flex: 1; display: flex; flex-direction: column; height: 350px;">
<!-- Верхняя фиксированная строка -->
<div style="flex: 0 0 60px; background-color: #68756a; color: white; display: flex; align-items: center; padding: 12px; font-weight: bold;">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis
</div>
<!-- Нижняя строка с прокруткой -->
<div style="flex: 1; overflow-y: auto; background-color: #68756a; padding: 12px; color: white;">
<div style="margin-bottom: 8px;">придержаны за амс</div>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<hr style="border-color: #8bc34a; margin: 10px 0;">
<div style="margin-bottom: 8px;">придержаны по акциям</div>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<hr style="border-color: #8bc34a; margin: 10px 0;">
<div style="margin-bottom: 8px;">выкуплены</div>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<hr style="border-color: #8bc34a; margin: 10px 0;">
<div style="margin-bottom: 8px;">придержаны до</div>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<br>
</div>
</div>
</div>[/html]
гостевая
Сообщений 1 страница 4 из 4
Поделиться12026-06-29 15:00:19
Поделиться32026-09-27 20:16:41
[html]<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Таблица с баннером и прокруткой</title>
<style>
/* Базовые стили для центрирования таблицы на странице */
body {
background-color: #1a1a1a;
display: flex;
justify-content: center;
padding: 40px;
font-family: 'Arial', sans-serif;
}
/* Основная таблица */
.custom-table {
width: 750px;
border-collapse: separate;
border-spacing: 0;
background-color: #2b2b2b;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.custom-table td {
padding: 0;
}
/* Верхняя ячейка: длинная узкая темно-красная картинка/баннер */
.banner-cell {
padding: 12px 12px 6px 12px !important;
}
.banner-img {
width: 100%;
height: 60px; /* Узкая высота */
background-color: #510001; /* Тёмно-красный цвет */
background-image: linear-gradient(135deg, #631b20 0%, #510001 100%);
border-radius: 20px; /* Скругленные края */
display: flex;
align-items: center;
justify-content: center;
color: #e9e0d3;
font-size: 13px;
letter-spacing: 1px;
text-transform: uppercase;
object-fit: cover;
}
/* Нижняя ячейка с прокручиваемым текстом */
.content-cell {
padding: 10px 12px 14px 12px !important;
}
.scroll-box {
max-height: 400px; /* Ограничение по высоте для появления прокрутки */
overflow-y: auto; /* Включает вертикальную прокрутку */
padding-right: 8px;
color: #eee8e1;
font-size: 13px;
line-height: 1.6;
text-align: justify;
}
/* Стилизация полосы прокрутки под тёмную тему */
.scroll-box::-webkit-scrollbar {
width: 5px;
}
.scroll-box::-webkit-scrollbar-track {
background: #202020;
border-radius: 4px;
}
.scroll-box::-webkit-scrollbar-thumb {
background: #510001;
border-radius: 4px;
}
.scroll-box::-webkit-scrollbar-thumb:hover {
background: #631b20;
}
</style>
</head>
<body>
<!-- Таблица -->
<table class="custom-table">
<!-- Верхняя строка с картинкой -->
<tr>
<td class="banner-cell">
<!-- Если нужна настоящая картинка, замените <div> на <img src="https://upforme.ru/uploads/001c/bb/6b/2/918971.png" class="banner-img" alt="Баннер"> -->
<div class="banner-img">
<span>гостевая</span>
</div>
</td>
</tr>
<!-- Нижняя строка с прокручиваемым текстом -->
<tr>
<td class="content-cell">
<div class="scroll-box">
<p style="margin-top: 0;">
<div style="margin-bottom: 8px;">придержаны за амс</div>
<a href="#" style="color: #dfdbdb; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #dfdbdb; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #dfdbdb; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #dfdbdb; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #dfdbdb; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #dfdbdb; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<hr style="border-color: #8bc34a; margin: 10px 0;">
<div style="margin-bottom: 8px;">придержаны по акциям</div>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<hr style="border-color: #8bc34a; margin: 10px 0;">
<div style="margin-bottom: 8px;">выкуплены</div>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<hr style="border-color: #8bc34a; margin: 10px 0;">
<div style="margin-bottom: 8px;">придержаны до</div>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<a href="#" style="color: #a5d6a7; text-decoration: none; display: block; margin-bottom: 4px;">ссылки</a>
<br>
</div>
</div>
</div>
</p>
</div>
</td>
</tr>
</table>
</body>
</html>
[/html]
Поделиться42026-10-02 18:45:41
/* C3.5 профиль*/
.punbb .post .post-author {
float: left;
width: 220px;
color: #fff;
margin: 0px 0 150px 9px;
text-align: center;
padding-bottom: 0px;
min-height: 118px;
border: 1px solid transparent;
border-radius: 20px;
background: url(https://upforme.ru/uploads/001c/bb/6b/2/918971.png) no-repeat top center, linear-gradient(#ddcfbb, #e9e0d3, #ddcfbb) padding-box, linear-gradient(-55deg, #d8c7a3, #9d7130, #b59b67, #d1b790) border-box;
box-shadow: 0px 1px 2px #fff;
}
