Tell us what’s happening:
Hello, can anyone pls help me?
i’m stuck at step 14 and i don’t understand what am i doing wrong
- You should use the :checked pseudo-class on .radio-group input[type=“radio”] to add a border color, background color and a box shadow when the radio button is selected.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Job Application Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<form>
<fieldset>
<legend>Personal Information</legend>
<label for="name">Full Name: </label>
<input type="text" id="name" name="name" required placeholder="E.g., Jane Doe">
<label for="email">Email: </label>
<input type="email" name="email" id="email" required placeholder="E.g., janedoe12@gmail.com">
</fieldset>
<fieldset>
<legend>Position</legend>
<label for="position">Which Job Position Do You Want To Apply: </label>
<select name="position" id="position">
<option value="manager">Manager</option>
<option value="employee" selected>Employee</option>
<option value="director">Director</option>
</select>
</fieldset>
<fieldset class="radio-group">
<legend>Availability</legend>
<label for="full-time">Full-Time</label>
<input type="radio" name="availability" id="full-time" value="full-time" checked>
<label for="part-time">Part-Time</label>
<input type="radio" name="availability" id="part-time" value="part-time">
</fieldset>
<fieldset>
<legend>More Information</legend>
<textarea id="message" rows="4" cols="50" placeholder="Type More Information Here"></textarea>
</fieldset>
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>
/* file: styles.css */
body {
font-family: Arial, sans-serif;
background-color: white;
}
legend {
font-weight: 600;
color: #034da1;
}
fieldset {
background-color: whitesmoke;
color: black;
margin: 10px auto;
}
input:focus, textarea:focus {
border-color: black;
}
input:invalid, select:invalid,textarea:invalid {
border-color: red;
}
input:valid, select:valid,textarea:valid {
border-color: green;
}
label {
display: inline-block;
max-width: 200px;
}
#position {
vertical-align: bottom;
width: 100px;
height: 35px;
}
button {
border: none;
background-color: #17bd5f;
color: whitesmoke;
width: 80px;
height: 40px;
text-align: center;
}
button:hover {
background-color: green;
transition: 0.2s linear;
}
.radio-group input[type="radio"] {
appearance: none;
cursor: pointer;
outline: none;
border: 2px solid gray;
width: 20px;
height: 20px;
border-radius: 50%;
vertical-align: bottom;
}
.radio-group input[type="radio"]:checked {
border-color: green;
box-shadow: 2px 2px #bfffdb;
background-color: #17bd5f;
transition: 0.3s ease-in;
}
.radio-group input[type="radio"]:checked + label {
color: blue;
}
input:first-of-type {
border-radius: 5px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Challenge Information:
Build a Job Application Form - Build a Job Application Form