<section>
<div class="container">
<h1>Pate Title</h1>
<p>Meaning that a low-fi sketch doesn’t represent all details of the design you’re working ons.Meaning that a low-fi sketch doesn’t represent all details of the design you’re working ons.</p>
</div>
</section>
<section class="full__bleed">
<div class="container">
<img src="https://picsum.photos/2568/600?random=1" width="2568" height="600" alt="" />
</div>
</section>
<section>
<div class="container">
<p>Meaning that a low-fi sketch doesn’t represent all details of the design you’re working on, whereas a high-fi sketch is a muc.Meaning that a low-fi sketch doesn’t represent all details of the design you’re working ons.</p>
</div>
</section>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");
@font-face {
font-family: "Redacted";
src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/62127/redacted-regular.woff2")
format("woff2");
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
min-height: 100vh;
font-family: "Exo", Arial, sans-serif;
background-color: #557;
color: #fff;
line-height: 1.5;
font-size: clamp(1rem, 1.2rem + 1vw, 1.25rem);
}
img {
max-width: 100%;
height: auto;
object-fit: cover;
object-position: center;
vertical-align: middle;
}
section {
font-family: Redacted, sans-serif;
}
section + section {
margin-top: 1rem;
}
:root {
--limit-container-width: 65ch;
--gutter: 1rem;
}
section {
display: flex;
justify-content: center;
}
.container {
width: 100%;
max-width: var(--limit-container-width); /* 限定宽度*/
padding-left: var(--gutter);
padding-right: var(--gutter);
/* 如果 section 不用 Flexbox 可以设置 margin-left 和 margin-right 为 auto,让其水平居中 */
}
/* 全屏状态,重置 container 容器样式 */
.full__bleed .container {
--limit-container-width: none;
--gutter: 0;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.