- 1

When I assign a id to a <p> the color I assign it in css won't work.

9th Nov 2017, 12:25 AM
Comedy Co.
Comedy Co. - avatar
8 ответов
+ 6
Should'nt it be <p id="new">hello world</p>
9th Nov 2017, 1:22 AM
qwerty
qwerty - avatar
+ 5
Can you show your code? HTML <p id="par">Hello, World!</p> CSS #par { color: blue; } This makes the text blue.
9th Nov 2017, 12:30 AM
ChaoticDawg
ChaoticDawg - avatar
+ 5
Like he said, post your code. Could be syntax, could even be another part of your CSS changing it again.
9th Nov 2017, 12:32 AM
AgentSmith
+ 5
I don't know how long I can hold these guys back. You better post the code. ;)
9th Nov 2017, 1:13 AM
AgentSmith
+ 4
Share your code
9th Nov 2017, 12:51 AM
Daniel
Daniel - avatar
+ 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.
9th Nov 2017, 1:13 AM
Comedy Co.
Comedy Co. - avatar
0
Sorry everyone.
9th Nov 2017, 2:52 AM
Comedy Co.
Comedy Co. - avatar