As the title says, my radio buttons in this survey project will not align normally and i cannot, for the life of me, figure out why!!
(i know its a little sloppy. sorry about that)
my html:
<body>
<h1 id="title">FreeCodeCamp Survey Form
</h1>
<h3>Thank you for taking the time to help us improve the platform
</h3>
<p id="description">
</p>
<form id="survey-form">
<label for="name" id="name-label">
Name:</label><br>
<input id="name" type="text" placeholder=" Enter Your Name" required><br>
<label for="email" id="email-label">
Email:</label><br>
<input id="email" type="email" placeholder=" Enter Your Email Address"required><br>
<label for="number" id="number-label">
Age:</label><br>
<input id="number" type="number" placeholder=" You Must Be Between 18 and 90 ;-;" required><br>
<label for="dropdown" id="dropdown-label">
Which option represents your current role?</label><br>
<div class="select">
<select name="format" id="dropdown">
<option selected disabled value="disabled">
Select Current Role</option>
<option value="Beginner">Beginner</option>
<option value="Trainee">Trainee</option>
<option value="Boss Hog">Boss Hog</option>
<option value="Master">Master</option>
</select>
</div>
<div class="radio">
Would You Reccomend FreeCodeCamp To A Friend?
<label for="Definitely">
<input type="radio" id="Definitely" value="Definitely" name="Reccomend">Definitely</label>
<label for="Maybe">
<input type="radio" id="Maybe" value="Maybe" name="Reccomend">Maybe</label>
<label for="No">
<input type="radio" id="No" value="No" name="Reccomend">No</label>
</div>
</form>
</body>
</main>
my css:
background-image: url("https://wallpaperaccess.com/full/983279.jpg");
background-size: cover;
font-family: Palatino Linotype;
}
h1{
color: #C0C0C0;
text-align: center;
position: relative;
top: 15px;
}
h3{
font-style: italic;
color: #C0C0C0;
text-align: center;
margin-bottom: 25px;
}
#survey-form{
color: #C0C0C0;
border-radius: 10px;
background-color: rgba(30, 90, 98, .2);
font-size: 20px;
margin-left: 25%;
margin-right: 25%;
padding: 30px;
}
#name{
margin-top: 5px;
margin-bottom: 20px;
border-radius: 10px;
}
#email{
margin-top: 5px;
margin-bottom: 20px;
border-radius: 10px;
}
#number{
margin-top: 5px;
margin-bottom: 20px;
border-radius: 10px;
min: 18;
max: 90;
}
input{
width: 100%;
height: 30px;
}
#dropdown{
border-radius: 10px;
width: 120em;
padding-left: 4px;
}
.select{
border-radius: 10px;
position: relative;
fbackground-color: green;
display: flex;
width: 100%;
height: 1.5em;
overflow: hidden;
padding-bottom: 20px;
}
select{
appearance:none;
cursor: pointer;
}
.select::after{
content: '\25BC';
position: absolute;
right: 0;
top: 0;
padding: 0 .5em;
color: black;
pointer-events: none;
transition: .25s all ease;
height: 100%;
}
.select:hover::after{
color: rgb(30, 30, 98);
transform: rotate(90deg);
}
‘https://codepen.io/HAC/pen/zYrVKNR’