HI, this is my code and its from the lesson “learn html by creating a registration form”. i am building this personally now and will like to add a little spice.
i do not want the input block to be below the text, i want them all inlined and organised on the right side of the screen, please walk me through what i am missing. my code looks like this so far
<!DOCTYPE html>
<html lang="en">
<head>'
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css"/>
<title>Registration Forms</title>
</head>
<body>
<h1>Registration Forms</h1>
<P>please fill out this form with the required information</P>
<form>
<fieldset class="details">
<label for="first-name">Enter the First Name: <input type="text" name="first-name" id="first-name" required></label>
<label for="last-name">Enter your Last Name: <input type="text" name="last-name" id="last-name" required></label>
<label for="email">Enter your Email: <input type="email" name="email" id="email" required></label>
<label for="password">Enter a New Password: <input type="password" name="password" id="password" required></label>
</fieldset>
<fieldset> Account type(required)
<label for="personal"><input type="radio"name="account-type" id="personal">Personal </label>
<label for="business"><input type="radio" name="account-type" id="business">Business</label>
</fieldset>
<fieldset>
<label for="profile-picture">Upload a profile picture: <input type="file" id="profile-picture"></label>
<label for="age">Input you age(Years): <Input type="number" min="13" max="120" id="age"></label>
<label for="referrer">How did you hear about us?
<select name="" id="referrer">
<option value="0">(select one)</option>
<option value="1">freeCodeCamp News</option>
<option value="2">freeCodeCamp YouTube Channel</option>
<option value="3">freeCodeCamp Forum</option>
<option value="4">Other</option>
</select>
</label>
<label for="bio">Provide a bio: <textarea id="bio" rows="3" cols="30" placeholder="type staff here.." > </textarea></label>
</fieldset>
<fieldset>
<label for="inline"> <input type="checkbox" id="inline"> I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/"> terms and conditions</label>
</fieldset>
<input type="submit" value="Submit">
</form>
</body>
</html>
label{display: block;
margin: 1em;}
h1,p{text-align: center;}
body{
background-color: rgb(6, 6, 65);
color: white;
border: 0 auto;
margin: 0;
}
form{margin: 0 auto;
width: 60%;
max-width: 500px;
min-width: 300px;
padding-bottom: 2em;
}
input[type="file"]{padding: 1px 2px;
border: 1px solid rgb(7, 7, 117);
}
textarea{border: 1px solid rgb(7, 7, 117);}
fieldset{border: none;
}