- 1
When I assign a id to a <p> the color I assign it in css won't work.
7 Answers
+ 6
Should'nt it be <p id="new">hello world</p>
+ 5
Can you show your code?
HTML
<p id="par">Hello, World!</p>
CSS
#par {
color: blue;
}
This makes the text blue.
+ 5
Like he said, post your code. Could be syntax, could even be another part of your CSS changing it again.
+ 5
I don't know how long I can hold these guys back. You better post the code. ;)
+ 4
Share your code
+ 1
I saw what I did wrong I did <p id="new" hello world><p> it worked in code playground but not in sublime text 3.
0
Sorry everyone.