私は画面サイズが変更されたときにパーセント、vw、vh、emとit still goes out of the curveでそれを配置しようとしました。
これを配置する方法については、スクリーンのサイズにかかわらず常に曲線の内側にとどまるようにしてください。
.phone-number {
position: absolute;
bottom: 20vh;
right: 5vh;
color: #472d23;
font-weight: 600;
font-size: 3vh;
}
.landing-page {
background: url("../img/bg2.jpg");
background-size: cover;
background-repeat: no-repeat;
height: 100vh;
background-position: center;
position: relative;
overflow: hidden;
-webkit-transition: all 2s ease-in-out;
-moz-transition: all 2s ease-in-out;
transition: all 2s ease-in-out;
}
.curve {
background: url("../img/Curve.png");
background-position: bottom center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
height: 100vh;
}
<div class="row">
<div id="carasoul" class="landing-page">
<div class="curve">
<div class="container">
<h3 class="phone-number">+1 800-800-800</h3>
</div>
</div>
</div>
</div>
あなたのコードはどこですか? –
コードを追加してください。 – AdhershMNair
申し訳ありません。私は自分のコードを追加しました –