test 1-2 12

<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>Spread with True Squares</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/css/lightbox.min.css" rel="stylesheet" /> <style> :root { --a5-width: 420px; --a5-height: 595px; } body { margin: 0; padding: 40px 0; background: #f2f2f2; font-family: sans-serif; display: flex; justify-content: center; } .spread { display: flex; width: calc(var(--a5-width) * 2); height: var(--a5-height); background-image: url('/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg'); background-size: cover; background-position: center; border: 1px solid #ccc; box-shadow: 0 0 8px rgba(0,0,0,0.2); position: relative; z-index: 1; } .page { width: 50%; height: 100%; overflow: hidden; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-left: 0; box-sizing: border-box; } .page-left { justify-content: flex-start; } .photo-slot { width: calc(var(--a5-height) / 2); /* 297.5px */ aspect-ratio: 1 / 1; overflow: hidden; margin: 0; } .photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; } .photo-slot + .photo-slot { margin-top: 0; /* 여백 없음 */ } .page-right { display: flex; justify-content: center; align-items: center; } .photo-right { width: 70%; aspect-ratio: 1 / 1; overflow: hidden; box-shadow: 0 0 4px rgba(0,0,0,0.2); } .photo-right img { width: 100%; height: 100%; object-fit: cover; } /* 모바일 대응 */ @media (max-width: 899px) { .spread { flex-direction: column; width: var(--a5-width); height: auto; background-position: center top; } .page { width: 100%; height: var(--a5-height); } .photo-slot { margin-left: auto; margin-right: auto; } } /* 인쇄 대응 */ @media print { body { background: white; padding: 0; } .spread { width: 296mm; height: 210mm; background-size: cover; page-break-after: always; border: none; box-shadow: none; } .page { width: 148mm; height: 210mm; } } </style> </head> <body> <div class="spread"> <!-- Page 1: 왼쪽 --> <div class="page page-left"> <a href="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" data-lightbox="album" data-title="Top Left"> <div class="photo-slot"> <img src="/files/attach/images/2025/04/30/0493a3f881d83c0263211d06af551990.jpg" alt="Top Left" /> </div> </a> <a href="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" data-lightbox="album" data-title="Bottom Left"> <div class="photo-slot"> <img src="/files/attach/images/2025/04/30/aed9d0c3fbcc3bd8a5a1e2070ce3fcaf.jpg" alt="Bottom Left" /> </div> </a> </div> <!-- Page 2: 오른쪽 --> <div class="page page-right"> <a href="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" data-lightbox="album" data-title="Right Highlight"> <div class="photo-right"> <img src="/files/attach/images/2025/04/30/ea837362da02d633b8b0168375e79183.jpg" alt="Right Photo" /> </div> </a> </div> </div> <script src="https://cdn.jsdelivr.net/npm/lightbox2@2.11.4/dist/js/lightbox.min.js"></script> </body> </html>
by eGrida posted May 10, 2025
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
Spread with True Squares

Articles