Build a Job Application Form - Build a Job Application Form

Tell us what’s happening:

Need some help with this: 19. You should use the :checked pseudo-class on radio buttons to tchange the text color of the associated label when the option is selected.
My code seems to be the same as the FCC Youtube and I did a ctrl/f5 and resubmitted. Thanks in advance.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

Your browser information:

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

Challenge Information:

Build a Job Application Form - Build a Job Application Form

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-job-application-form/66faac4139dbbd5dd632c860.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hey there,

Please update the message to include your code. The code was too long to be automatically inserted by the help button.

There are two ways you can format your code to make it easier to read and test:

  1. After you copy/paste your code into the editor, select it by dragging your cursor over it then click the (</>) button in the toolbar to automatically wrap your code in backticks. (You can click on the animated demo image below to enlarge it.)

  1. Manually add three backticks on a new line above your code and on a new line after your code. Note that a backtick is NOT the same as a single quote('). To find the backtick key on your keyboard, see this post.

To see changes to your post as you make them, you can click the (M+) button on the toolbar to bring up the rich text editor:

Here’s my code:

```

radio-group input[type=“radio”]:checked + label {

color: green;

}

```

Hey, in my previous copy/paste I somehow deleted the “.” at the beginning of “.radio-group”. It’s actually there in my code. Here’s a new copy/paste:


``` 

.radio-group input[type=“radio”]:checked + label {

color: green;

}Hey, I accidently deleted the “.” (period) at the beginning of “.radio-group” when I copy/pasted it in the previous reply. Here’s my code again:

```

.radio-group input[type=“radio”]:checked + label {

color: green;

}

```


There are two ways you can format your code to make it easier to read and test:

  1. After you copy/paste your code into the editor, select it by dragging your cursor over it then click the (</>) button in the toolbar to automatically wrap your code in backticks. (You can click on the animated demo image below to enlarge it.)

  1. Manually add three backticks on a new line above your code and on a new line after your code. Note that a backtick is NOT the same as a single quote('). To find the backtick key on your keyboard, see this post.

To see changes to your post as you make them, you can click the (M+) button on the toolbar to bring up the rich text editor:

I did not use the “.radio-group” part and it passed. There is only one radio button group, so it works. But if there are more than one radio button group and you want to style them differently, then your way would be better, I think. Although having a consistent formatting may be considered better.

Sorry, but I don’t understand your solution. Please show me your code for the complete selector line. Thanks.

FrankHogsed

11h

I did not use the “.radio-group” part and it passed."?

Hey @FrankHogsed,

This is against forum rules. Please don’t ask someone to do that for you.

Thank you.

Your suggested solution:

I did not use the “.radio-group” part and it passed.

So, I removed the .radio-group at the front of the selector and here’s my current code:

input[type=“radio”]:checked + label {

color: green; }

And here’s my failure after submission:

Failed: 19. You should use the :checked pseudo-class on radio buttons to change the text color of the associated label when the option is selected.

Please help since this is my only remaining failure. Thanks.

please post your updated code

There are two ways you can format your code to make it easier to read and test:

  1. After you copy/paste your code into the editor, select it by dragging your cursor over it then click the (</>) button in the toolbar to automatically wrap your code in backticks. (You can click on the animated demo image below to enlarge it.)

  1. Manually add three backticks on a new line above your code and on a new line after your code. Note that a backtick is NOT the same as a single quote('). To find the backtick key on your keyboard, see this post.

To see changes to your post as you make them, you can click the (M+) button on the toolbar to bring up the rich text editor:

Check:

  • That your CSS statement before this one is closed off properly.
  • That no other statement overwrites this statement. Move this statement to the bottom of your CSS file.

So for the job applications form, you just need a few images, 2 - 3 text boxes to explain the job, the actual form to fill out with text field boxes and text. Then that information to be able to send to your gmail or other database?

Welcome to the forum @matthewdgerrior,

Please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Help button image located on each challenge. This will automatically import your code in a readable format and pull in the challenge URL while still allowing you to ask any question about the challenge or your code.

Thank you.

Happy coding

Thank you, I was just trying to understand Francs needs. I will post my own topic when I need help and reply back to threads when helping.

Thank you for clarifying. We would also like to help @FrankHogsed, but he hasn’t yet posted his complete code so we can test.

no, this is related to this challenge https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-job-application-form/lab-job-application-form

Thanks for your patience with me…

I’m visually impaired and use NVDA and magnification.

As best I can tell my code visually matches that shown in the FCC Youtube for this project.

I’ve pasted my code into google and received a reply that it was constructed perfectly to target the checked label within the radio-group class.

I’ve used both Chrome and Firefox and received the same failure results when submitting my code.

From Failed step 19:

You should use the :checked pseudo-class on radio buttons to change the text color of the associated label when the option is selected.

My code copied from the FCC HTML and CSS editors:

Availability:

Full Time

Part Time

.radio-group input[type=“radio”]:checked + label {

color: green;

} …

To google: Will this code allow the associated label to turn green when checked?

From the google search:

Yes, this code will successfully turn the label’s text green when its associated radio button is checked.

Why it works

The + is the adjacent sibling combinator in CSS. It targets the element that immediately follows the element in your HTML. Because your labels come directly after their respective inputs, the color: green; style is applied perfectly.View

From Frank: When I run the code and get visual help I’m told that the label is NOT changing to green when checked. So, there’s a problem somewhere.

Does your label element immediately follow your input[type="radio"] element?

Hello,

Although I use vscode and copy from there into the editors I’m providing code copy/pasted from the FCC editors for your clarity. I’m not using ellipsis between html and css because I’m building this from where I first copied into a word document and previously when I pasted from there the ellipsis caused a truncation.

Availability:

Full Time

Part Time

The following code was moved to the end of the CSS editor.

.radio-group input[type=“radio”]:checked + label {

color: green;

}

Please let me know if I can provide any more information.

I understand it may not be as easy, but it would be great if you could put your code in a code block so that it stays formatted as code, instead of the html being rendered

to create a code block, you should be able to use Ctrl+E before pasting your code. Or alternatively, while having all the code selected after having pasted it