0

I'm quite new to coding and have been praciticing designing a basic splash page with some links that I can then develop further into a full, multi-page site. I don't understand why my background won't fill the entire screen on half and full screens. I also don't understand what I'm doing wrong with my Terms of service unordered list (I want it to be at the bottom of the page)

li .service-link {
    color: #313131;
}

.service-nav, .service-list, .service-item {
    list-style-type: none;
    display: inline-block;
}

.terms{
    text-align: center;
    position: relative;
}

html {
    background-image: url("../Final Logo Assets/Blur Mug-min Opacity-min.jpg");
    background-repeat: no-repeat;
    background-position: center;
  background-size: cover;
}   
 <div class="terms" id="termsofservice">
<ul class="service-nav">
  <li class="service-item">
  <a class="service-link" href="#">Privacy Policy</a>
      </li>
  <li class="service-item">
  <a class="service-link" href="#">Terms of Service</a>
      </li>
      </ul>
</div>
doğukan
  • 23,073
  • 13
  • 57
  • 69

1 Answers1

0

see js fiddle link**use body selector and add height **

body {
    background-image: url("../Final Logo Assets/Blur Mug-min Opacity-min.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
Razib Hossain
  • 708
  • 5
  • 13