【发布时间】:2019-07-31 16:50:02
【问题描述】:
必须在“let out the ...”上方显示“think”二字
注意#1:“let out the”、“creative”、“beast”应该与它们的基线对齐。
注意#2:“think”的顶部位置应该等于“creative”的capline
.section{
max-width: 940px;
margin: 0 auto;
}
.section__title{
font-family: 'KenyanCoffeeRg-Bold',sans-serif;
text-transform: uppercase;
text-align: center;
color: #3f3b48;
font-size: 56px;
font-weight: 700;
}
.text--handwritten{
font-family: 'Pacifico',cursive;
text-transform: capitalize;
font-weight: 300;
font-style: italic;
}
.text--emphasized{
font-size: 122px;
color: #ff0000;
}
<section class="section">
<h1 class="section__title">
<span class="text text--handwritten">Think</span>
<!-- Typical linebreak not solve my problem... -->
<br>
<span>Let out the</span>
<span class="text text--emphasized">creative</span>
beast
</h1>
</section>
【问题讨论】:
-
为了更清楚地了解我需要什么,请看图:Desired result
-
我认为解决这个问题的最好方法是使用 SVG。
标签: html css text-alignment typography