set fixed spacing for flexbox list

后端 未结 5 1121
迷失自我
迷失自我 2021-01-25 06:38

i noticed that on my firefox the distance between the bottom of the website and the list for links(terms,about...) is really large, i cannot seem to figure out what to specify i

5条回答
  •  忘了有多久
    2021-01-25 06:57

    I have made a few changes in your code. hope this will help you.

    HTML:

    
    
    
    
    
      
      
      
      
      Home - Brand
      
      
    
    
    
      

    Forgot password

    Change your password

    Confirm your email address

    CSS:

    body {
      background-color: #FFFFFF;
      margin: 0;
    }
    
    .container {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    
    header {
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid #E5E5E5;
    }
    
    h1 {
      font-family: Montserrat;
      font-style: normal;
      font-weight: 500;
      color: #63BA86;
    }
    
    h1.big {
      font-style: normal;
      font-weight: 500;
      color: #63BA86;
      text-align: center;
    }
    
    h1.cer {
      font-style: normal;
      font-weight: 300;
      color: #356B51;
      text-align: center;
    }
    
    h2 {
      font-family: Montserrat;
      font-style: normal;
      font-weight: 500;
      color: #63BA86;
    }
    
    form {
      margin: auto;
      text-align: center;
    }
    
    input {
      width: 300px;
      height: 35px;
      border: 0.5px solid #63BA86;
      border-radius: 5px;
      font-family: Montserrat;
      padding-left: 5px;
    }
    input:required {
      box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05), 0px -4px 4px rgba(0, 0, 0, 0.05);
    }
    
    button {
      margin-top: 10px;
      padding: 10px 35px;
      border: 0.5px solid #63BA86;
      box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05), 0px -4px 4px rgba(0, 0, 0, 0.05);
      border-radius: 4px;
    }
    
    .btnn {
      text-align: center;
    }
    
    button.conf {
      font-family: Montserrat;
      font-style: normal;
      font-weight: bold;
      color: #FFFFFF;
      background-color: #67E298;
    }
    
    ul {
      display: flex;
      justify-content: flex-end;
      text-decoration: none;
      list-style: none;
    }
    
    
    li {
      text-align: left;
      margin: 10px;
    }
    
    link {
      margin: 10px;
      font-size: large;
    }
    
    a {
      font-family: Montserrat;
      font-style: normal;
      font-weight: 500;
      font-size: 14px;
      line-height: 17px;
      color: #63BA86;
      text-decoration: none;
      margin: 1rem;
    }
    
    @media screen and (max-width: 30em) {
      h1.big {
        font-size: 20px;
        line-height: 29px;
      }
      h1 {
        font-size: 18px;
        line-height: 22px;
      }
      h1.cer {
        font-size: 12px;
        line-height: 10px;
      }
      h2 {
        font-size: 18px;
        line-height: 29px;
      }
      form {
        width: 90%;
      }
      button.conf {
        font-size: 12px;
        line-height: 17px;
      }
      footer.cl {
        border-top: 1px solid #E5E5E5;
      }
    }
    
    @media screen and (min-width: 30em) {
      h1 {
        font-size: 18px;
        line-height: 22px;
      }
      h1.big {
        font-size: 40px;
        line-height: 29px;
      }
      h1.cer {
        font-size: 12px;
        line-height: 10px;
      }
      form {
        width: 50%;
      }
      button.conf {
        font-size: 12px;
        line-height: 17px;
      }
      .liner {
        width: auto;
        height: 0px;
        border: 1px solid #E5E5E5;
        margin-top: 40px;
      }
    }
    

    JSFiddle: https://jsfiddle.net/Danielprabhakaran_N/7t8qk69b/3/

提交回复
热议问题