Bagaimana cara fix background ?

Ini kenapa ? background nya cuma sampai di tag h1-h3 di kasih position : fixed .. jadi saya tidak pakai position fixed ... bisa tapi nanti ndak bisa buat footer karena antiscroll ada yang cara fix in ? newbie :D bagian script html

Bagian css

Pas di website nya

avatar stiven
@stiven

15 Kontribusi 3 Poin

Diperbarui 7 tahun yang lalu

4 Jawaban:

coba tutup dulu div class="content" tu gan

avatar maddock
@maddock

119 Kontribusi 115 Poin

Dipost 7 tahun yang lalu

Sudah saya buat berkali kali tetap begitu

avatar stiven
@stiven

15 Kontribusi 3 Poin

Dipost 7 tahun yang lalu

coba gini gan

  <div class="content">
    <h1>Test Test Test Test Test</h1>
    <h2>test h2 test h2 test h2</h2>
    <h3>test h3 test h3 test h3</h3>
    <a href="">LOGIN</a>
    <a href="">SIGNUP</a>
  </div>
.content {
  background-image: url("path image agan");
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  padding: 10px 0 10px 0;
}

h1, h2, h3, a {
  color: white;
}

dah ane coba dan ter-cover semua ampe link LOGIN & SIGNUP

avatar maddock
@maddock

119 Kontribusi 115 Poin

Dipost 7 tahun yang lalu

Ok thank you :D

avatar stiven
@stiven

15 Kontribusi 3 Poin

Dipost 7 tahun yang lalu

Login untuk ikut Jawaban