Really feel like I am having amental block? 19. Background and colour


#1


Replace this line with your code.


#2

think I have missed the reading on changing the background using CSS?


#3

Go back a few lessons and read it..

And if you need any help then come back here and we can assist you.


Codecademy lesson: https://www.codecademy.com/courses/web-beginner-en-y2Yjd/2/1

MDN- https://developer.mozilla.org/en/docs/Web/CSS/background-color


#4

I have read back on this and tried re jigging the code but not sure what to put between

to refer to style Sheet?
Sorry I hoped this has explained it very difficult trying to type this on iPad keyboard?
Thank you

#5

Its hard to work on hand held devices, do you have a laptop or desktop that you could use ?

stylesheet is where you type in the CSS, its an external page and you have to click on the CSS tab to add the code


#6

I have got a laptop I do my course on, I was just replying on the Ipad,
I cant get the html to read the stylesheet?
not sure what should be in the

I'm really missing something, I have looked back at this and re-read it?
Everything else I have managed to pick up quite quickly?


#7

Please paste in your HTML & CSS so I can help you further along with the lesson URL and error that you are getting


#8

Thanks for taking the time to help me!


#9

You haven't specified what selector the styles should be added onto.

This is how you would do it:
example red text on paragraph

p{
    color: red;
}

#10

Did you see the post I sent?


#11

Yeah understand that bit.
Its not the paragraph that I want to change though?
its the background, what do I put in the Div so that it reads the stylesheet?
Sorry I don't know if I have explained it correctly?


#12


#13

I used a paragraph as an example as I wanted you to see that example and apply it with the div..

you would do something like this(example of div but different styling):

div{ 

   color: #FFFFFF;
   font-family: Arial;
   background-color: #000000;

}

explanation:

if the HTML tag is <p> for paragraph then your selector will be p

after you add p

p

you will add opening bracket

p{

your styling and closing bracket

p{

 //style

}

#14

please can you help as I cant get passed this bit and have lost three days?


#15

Have you read this ^ https://discuss.codecademy.com/t/really-feel-like-i-am-having-amental-block-19-background-and-colour/75254/13?u=zainabrawat

I explained it.

Show me what you typed.

also please tell me whats your age?


#16

sorry I hadn't seen that reply?
I am now 40 is that a problem?


#17

Okay no problem read understand and apply, and if you still have an error then paste in your code.

No not a problem


#18

thank you so much! I had too many open brackets { ?
thanks again and sorry to be a pain!


#19

Yeah your syntax was incorrect, I believe you understand it now ?


#20

Yes! I feel so stupid?
Thanks so much for your help. If I get stuck again is it ok to contact you?