Survey Form - Build a Survey Form

Hello, I am trying to align my title into the center but when I preview the final product, the title is still aligned to the left as well as the survey body. How should I fix it?

body {
  font-family: 'Poppins', sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: linear-gradient( 115deg, rgba(58, 58, 158, 0.8), rgba(136, 136, 206, 0.7)), url('https://images.prismic.io/cloudcovermusic/300866ed-2a72-4a8f-9956-fdfb8560057a_audiobranding1.jpg?auto=compress,format&rect=0,0,1280,853&w=980&h=653');
  background-position: center;
  width: 100vw;
  color: white;
  margin: 0;
}

title {
  margin-top: 30px;
  text-align: center;
  margin-bottom: 5px;
  font-weight: 400;
}

#description {
  margin-top: 0;
  text-align: center;
  font-style: italic;
}

h1 ,p {
  margin: 10px auto 10px auto;
  display: block;
}
#survey-form {
  background-color: rgba(27, 27, 50, 0.8);
  width: 80%;
  margin: auto 0;
  border-radius: 10px;
  max-width: 800px;
  min-width: 500px;
}

.form-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.25rem auto;
  padding: 0.25rem;
}

label {
  margin-bottom: 10px;
  width: 90%;
  font-size: 18px;
  padding-top: 8px;
}

input, select {
  width: 90%;
  height: 40px;
  border-radius: 5px;
  font-size: 16px;
}

textarea {
  width: 90%;
  font-size: 16px;
  height: 100px;
}

input[type="radio"], input[type="checkbox"]{
  height: 20px;
  margin-left: 20px;
  width: 10%
}

.form-radio, .div-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-bottom: 5px;
}

input[type="submit"]{
  width: 90%;
  color: white;
  background-color: green;
  border: 1px solid green;
  margin-bottom: 50px;
}

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

We need to see your html as well

Nevermind, I was able to fix it. Thank you.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.