Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Shouldn’t the elements stack on top of eachother, since they’re all display: block; ? Also, i noticed the height is 320px when inspected, is that connected to it?

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">
        <h1>Job Application Form</h1>
        <form>
            <label for="name">Full name</label>
            <input type="text" id="name" placeholder="Enter your name">

            <label for="email">Email</label>
            <input type="email" id="email" placeholder="Enter your email">

            <label for="position">Position</label>
            <select id="position">
                <option>Select a position</option>
                <option value="developer">Developer</option>
                <option value="designer">Designer</option>
                <option value="manager">Manager</option>
            </select>

            <fieldset class="radio=group">
                <legend>Availability</legend>
                <label for="full"></label>
                <input type="radio" name="availability" id="full">Full-time</input>
                <label for="part"></label>
                <input type="radio" name="availability" id="part">Part-time</input>
            </fieldset>

            <label for="message">Why do you want this job?</label> 
            <textarea id="message" rows="4" cols="30" placeholder="Write your motivation.">
            </textarea>

            <button type="submit">Submit</button>

        </form>

    </div>


</body>

</html>
/* file: styles.css */
.container {
  display: block;
}


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Job Application Form - Build a Job Application Form

Actually no. You see the way everything is setup right now, you have each element inside your container taking up the 100% of the space it can take up. It’s pretty close to default browser behavior in Firefox.

As for the height, the height of each element is dependent on your zoom. Though I am curious which element you were inspecting and how you were retrieving it’s height. On my screen and inspection, it remains unchanged with the container’s display to block.

Hi there, i made a mistake and switched height and width when inspecting, so thats cleared up. i updated the css:

what style should i use to stack the elements on top of eachother?

label {
  display: block;
}

is that the normal way to stack the element when making a form field? i guess i could also have used br

.container {
  display: block;
  width: 600px;
  margin: auto;
}