- 
                Notifications
    You must be signed in to change notification settings 
- Fork 611
add task solution #776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add task solution #776
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your links aren't working, also don't forget add links to description
| not sure if my demo link is correct... | 
        
          
                src/index.html
              
                Outdated
          
        
      | <label for="surname">Surname:</label> | ||
| <input | ||
| type="text" | ||
| name="surname" | ||
| id="surname" | ||
| autocomplete="off" | ||
| class="form-input-gap" | ||
| > | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- i'd recommend to wrap input with label to avoid using id/for
- apply class to your wrapper (label) instead of input to make outer indent
| <label for="surname">Surname:</label> | |
| <input | |
| type="text" | |
| name="surname" | |
| id="surname" | |
| autocomplete="off" | |
| class="form-input-gap" | |
| > | |
| <label> | |
| Surname: | |
| <input | |
| type="text" | |
| name="surname" | |
| autocomplete="off" | |
| class="form-input-gap" | |
| > | |
| </label> | 
        
          
                src/index.html
              
                Outdated
          
        
      | autocomplete="off" | ||
| class="form-input-gap" | ||
| > | ||
| <br> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better avoid using <br />. Use css
        
          
                src/index.html
              
                Outdated
          
        
      | <label> | ||
| Do you love cats? | ||
| <span> | ||
| <input | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
each input/select should be wrapped with a label
| <label> | |
| Do you love cats? | |
| <span> | |
| <input | |
| <div> | |
| Do you love cats? | |
| <label> | |
| <input | 
        
          
                src/index.html
              
                Outdated
          
        
      | > | ||
| <br> | ||
|  | ||
| <div class="form-input-gap"> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant wrapper. apply styles to your labels
| <div class="form-input-gap"> | 
        
          
                src/style.css
              
                Outdated
          
        
      | .form-field { | ||
| margin-bottom: 20px; | ||
| } | ||
|  | ||
| .form-input-gap { | ||
| margin-bottom: 10px; | ||
| } | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may only apply classes only to your filedset and form field (label or div)
Example:
.fieldset:not(:last-child) {
  margin-bottom: 20px
}
.field:not(:last-child) {
  margin-bottom: 10px
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost done
| <label> | ||
| <input | ||
| type="radio" | ||
| name="yes" | ||
| value="yes" | ||
| > | ||
| Yes | ||
| </label> | ||
| <label> | ||
| <input | ||
| type="radio" | ||
| name="no" | ||
| value="no" | ||
| > | ||
| No | ||
| </label> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

No description provided.