I’m extremely new to the world of coding and suffice to say, it’s clicking but also not. I have no experience whatsoever except this FreeCodeCamp modules.
I’ve completed the first few modules and now I’ve got to the actual coding part of building a survey form.
I’m a bit miffed as to why this element isn’t working, as what I’m trying to do is change the body as ‘display block’, but clearly I’m doing something wrong, I just don’t understand what.
I’m also referring to the previous modules but I can’t seem to work it out. This FreeCodeCamp is really great, but maybe there’s some information I’m missing/rules or a text book that might help to refer to. If there is can anyone also help with any suggestions.
But when I took that first image, I’d already put in the fieldset tag. I was under the assumption to correct this image in this post you’d do the;
label {display:block etc etc
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.
It’s all good… after looking over different forum posts and using Google, I’ve realised I’m putting the element on the HTML rather than the CSS which is why of course it would work. Also realise as above mentioned by someone else, the field set auto has display as block.
Maybe some point in the next 7 years I’ll finally understand the rest, haha!
Hello @Mara2024! Welcome to the fascinating world of coding!
Not sure exactly what your issue was but from your screenshot it looks like you are putting your css in the wrong place. See below:
See where you put that label { display… and so on? That’s not where it goes - you’re supposed to put all the styles in the styles.css folder accessed by the button above your coding window.
Oh, glad to see you’ve figured it out on your own. That’s always great when you solve something with your own research and thinking. You will do that many more times, I’m sure.
Don’t worry - I thought so too but it all came together much faster than I expected. Just don’t ever give up!
Have a good time,
Nicolas, 17