Registration Form ; Step 47

Not knowing how to put border to textarea and input in css. Pls Help

Getting this:

Test

Sorry, your code does not pass. Keep trying.

Hint

You should use a comma separated element selector to select the input and textarea elements.

```html /* file: index.html */ Registration Form

Registration Form

Please fill out this form with the required information

Enter Your First Name: Enter Your Last Name: Enter Your Email: Create a New Password: Personal Account Business Account I accept the terms and conditions Upload a profile picture: Input your age (years): How did you hear about us? Provide a bio: ```
/* file: styles.css */
body {
 width: 100%;
 height: 100vh;
 margin: 0;
 background-color: #1b1b32;
	color: #f5f6f7;
 font-family: Tahoma;
	font-size: 16px;
}

h1, p {
 margin: 1em auto;
 text-align: center;
}

form {
 width: 60vw;
	max-width: 500px;
	min-width: 300px;
	margin: 0 auto;
}

fieldset {
 border: none;
	padding: 2rem 0;
}

fieldset:not(:last-of-type) {
 border-bottom: 3px solid #3b3b4f;
}

label {
 display: block;
	margin: 0.5rem 0;
}

input,textarea,select {
 margin: 10px 0 0 0;
.input , .textarea{
 width: 100%;
 background-color: #0a0a23 
 border: 1px solid #0a0a23
}
 


.inline {
 width: unset;
 margin: 0 0.5em 0 0;
 vertical-align: middle;
}

   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Step 47

Link to the challenge:

input and textarea are html tags so target them without dot, dot is for target ing classes, should make new entery only for input and textarea seperate from three tags namely input, textarea, select

1 Like

Look after the sintax, as said before, the points, and there’s another error, the ; at the end of the css comand, hope it helps

Hi @Dulz_David, I’m still stuck on this one so I’m wondering if you can clarify. This is what I have for the CSS, and below is the error I’m receiving:

input, textarea {
background-color: #0a0a23;
border: 1px, solid #0a0a23;
}

Error Hint: You should give the input and textarea elements a 1px , solid border with a color of #0a0a23 .

Is there a way you could guide me to what I’m missing? This has me stumped. Thanks!

So i just passed through it, and I had the same issue as you, and while I can’t see whats wrong with our answers, this is what got me through :/*

input,

textarea{

background-color: #0a0a23;

border: 1px solid #0a0a23;

} */

edit: its the comma after 1px in your code

1 Like

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