2/10 Where do I put the .nav CSS code?


#1

Exercise 1/10 told us: "The file main.css has the CSS rules that style the HTML in index.html.", but I bet you were in a hurry to get to the fun part and just clicked on Submit without taking time to figure out what that meant!

This is one of those things that is easy to miss the first time and then after that you wonder why you didn't see it. :slight_smile:

  • In the centre of the page, in the editing area, the place with the black background where you can see lots of code in different colours.
  • Look just above line 1, see where it says index.html? That is where all of your HTML code is going to go.
  • Look just to the right of index.html, see where it says main.css? Click on main.css and you will be in the tab/page where you will be writing your CSS rules.
    location of main.css tab


Make a website: CSS Styling #2 navigation
I can not find where I have to write the code
Need help on CSS styling: section 2
CSS Styling
Oops, try again. Set the font-weight to bold
2. My code is exactly as the "Stuck...Get a Hint" example reads
Part 2 html:index HELP!
Set the color to #5a5a5a
Help with CSS Styling
The .nav a part is not turning a color
Part 2 in css styling font-weight wont work
Css learn
3. It won't accept my code
Need help ._
I don't get where to put my CSS rule in the first exercise
The font-weight is set to bold but it says that it is wrong
Lesson 2 css website
Lesson 2 navigation
2. it's still not working
Guys .a in my code doesn't seem to be registering
2/10 i did out #5a5a5a
Where do I put ..nav a CSS style in "index.html"?
2/10 Code is not working
Help With: CSS Styling: 2. Navigation
2. My code is exactly as the "Stuck...Get a Hint" example reads
Where do I put this?
I don't know how this works
2.Navigation
Make a Website 1/10
#2

#3

As newbies, at the time of talking about main.scc (probably) not many people understand what CSS rules are. It could be explained better by saying that this is where the CSS code is going to be typed in and it could also be circled, as you did.


#6

you re right! I am in ths situation either


#7

You nailed it on the head. I rushed through the reading and didn't pay attention to the main.css tab


#8

4 posts were split to a new topic: 2. Navigation -- put the font weight to bold


#9

i wasted hours on finding out how to put the css thank u guys heap


#10

indeed, I rushed. Thanks for the solution:-)


#11

Omagawd thanks so much I hate it when I submit and get through something if I don't understand it. I just saw had this issue and thank you so much for helping me out. :smile:

Update:
UGH very frustrated, I have no clue what to do... I did exactly what the instruction on codecademy said but there are errors for every rule. I even looked at the hint and it didnt work


#12

you've helped me a lot thanks , this exercise was driving me crazy


Guys .a in my code doesn't seem to be registering
#13

Whenever I hear the code css, i find whatever sounds like it so i put that code in the main,css


#14

Thanks it took me ages to find that out.


#15

Thank you, very helpful for newbies :smile:


#16

6 posts were split to a new topic: 2. It is showing error in font-weight


#17

4 posts were split to a new topic: 2. i need help in writing it in the css


#21

2 posts were split to a new topic: 2. What would be my code?


#22

Lol ty i thought i was fk'd
xD


#23

Thanks a lot. I was having trouble but you helped me a bunch.:grin:


#24

I have tried everything, and I can not get past this part. It says that my color coding is wrong, then the font is wrong, then the color is wrong. Ive done everything listed above, so I dont know the issue. Help me please!


#25

Please show me what you have and the error you are getting.