M
M
mindx2018-03-30 07:48:34
css
mindx, 2018-03-30 07:48:34

How to make text by text?

The bottom line is this: there is a heading against the background of the letter. I seem to have done it, but with the mobile version, the letter leaves in the background ... What did I do wrong? Correct plz
https://codepen.io/Mindx/pen/zWWKJg my code
bHcnTwtBhQk.jpgAs needed
f0GpbLoNCRY.jpgand how I have
ZY on the desktop version everything is ok

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
OneTwoThreeFourFive, 2018-03-30
@mindx

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
}
h2 {
  text-align: center;
  font-size: 50px;
}
p {
  position: absolute;
  z-index: -1;
  color: #bbb;
  font-size: 100px;
  top: -80px
}

<div class="section-header">
  <h2>COPY</h2>
  <p>COPY</p>
</div>

B
Brake Made, 2018-03-30
@DanilAndreevich

Use media queries for each screen extension.
more details : Tyk

A
A person from Kazakhstan, 2018-03-30
@LenovoId

I haven't tested on mobile, but I'll suggest this: https://codepen.io/topicstarter/pen/KooNjd

J
Jupiter Max, 2018-03-30
@vardoLP

Can make floating content and z-index
https://jsfiddle.net/sda3f56t/7/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question