I passed all the test case but i am struck at css part
in Html i got the idea what i have to do but in css i have no clue from where to start and how to proceed further
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1 id="title">freeCodeCamp Survey Form</h1>
<p id="description">Thank you for taking the time to help us improve the platform</p>
<form id=survey-form>
<label for="name" id="name-label">Name</label>
<input id="name" type="text" placeholder="Enter your name" required value="name">
<br>
<label for="email" id="email-label">Email</label>
<input id="email" type="email" placeholder="Enter your email" required >
<br>
<label for="number" id="number-label">Age(optional)</label>
<input id="number" type="number" min="10" max="99" placeholder="Age">
<br>
<spam>Which option best describes your current role?<spam>
<select id="dropdown">
<option disabled hidden selected>Select current role</option>
<option value="student">Student</option>
<option value="job">Full time job</option>
<option value="learner">Full time Learner</option>
<option value="not">Prefer not to say</option>
<option value="other">Other</option>
</select>
<br>
<spam>Would you recommend freeCodeCamp to a friend?</spam>
<input type="radio" id="definately" name="radio" value="def">
<label for="definately">Definately</label>
<input type="radio" id="maybe" name="radio" value="may">
<label for="maybe">Maybe</label>
<input type="radio" id="nots" name="radio" value="not">
<label for="nots">Not sure</label>
<br>
<spam>What is your favorite feature of freeCodeCamp?</spam>
<select id="dropdown">
<option disabled hidden selected>Select an option</option>
<option value="challenges">Challenges</option>
<option value="projects">Projects</option>
<option value="community">Community</option>
<option value="open">Open source</option>
</select>
<br>
<spam>What would you like to see improved? (Check all that apply)<spam>
<input type="checkbox" id="front" name="frontend" value="fro">
<label for="front">Front-end</label><br>
<input type="checkbox" id="back" value="back">
<label for="back">Back-end</label><br>
<input type="checkbox" id="data" value="datavisualization">
<label for="data">Data Visualization</label><br>
<input type="checkbox" id="challenge" value="chall">
<label for="challenge">Challenges</label><br>
<input type="checkbox" id="open" value="opensource">
<label for="open">Open Source</label><br>
<input type="checkbox" id="git" value="gitter">
<label for="git">Gitter Help Rooms</label><br>
<input type="checkbox" id="video" value="videos">
<label for="vider">Videos</label><br>
<input type="checkbox" id="city" value="citi">
<label for="city">City Meetups</label><br>
<input type="checkbox" id="wikki" value="wiki">
<label for="wikki">Wikki</label><br>
<input type="checkbox" id="forun" value="forum">
<label for="forum">Forum</label><br>
<input type="checkbox" id="additional" value="add">
<label for="additional">Additional Cources</label><br>
</br>
<label for="message">Any comments or suggestions?</label>
<textarea id="message" placeholder="Enter your comment here..."></textarea>
<br>
<button id="submit">Submit</button>
</form>
</body>
</html>
/* file: styles.css */
.body{
justify-content:center;
justify-item:center;
align-item:center;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.41
Challenge: Survey Form - Build a Survey Form
Link to the challenge: