Trying to recreate the design of the freeCodeCamp Survey Form
Having trouble with using inline-block after .form-control input, specifically for radio buttons.
Can someone help pinpoint what I'm doing wrong? Thank you!
form{
background-color: grey;
max-width: 450px;
margin: 0 auto;
padding: 30px
}
.form-control{
margin-bottom: 40px;
text-align: left;
}
.form-control label{
display: block;
margin-bottom: 10px;
}
.form-control input, .form-control select{
border: 1px solid #777;
border-radius: 3px;
padding: 8px;
display: block;
width: 100%;
}
.form-control input [type="radio"]{
width: auto;
display:inline-block;
}
<div class="form-control">
<label> Would you recommend freeCodeCamp to a friend?</label>
<label for="Definitely"> <input type="radio" id="Definitely" name=RadioRecommend> Definitely </label>
<label for="Maybe"> <input type="radio" id="Maybe" name=RadioRecommend> Maybe </label>
<label for="Not sure "> <input type="radio" id="Not sure" name=RadioRecommend> Not sure </label>
</div>