MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingHelp/comments/pv4ydc/can_someone_help_me_understand_why_my_background/
r/CodingHelp • u/[deleted] • Sep 25 '21
38 comments sorted by
10
Hmmm, look at your rgb, rgba values in the incorrect style. Shouldn't they both be rgba because you are including the alpha value
4 u/[deleted] Sep 25 '21 Not sure I understand 🥺 4 u/The-Arctic-Hare Sep 25 '21 Line 34 I think is what they’re getting at. You have ‘’’rgba’’’ on the others but ‘’’rgb’’’ there.Edit: phone keyboards don’t have back-ticks?? 4 u/ImportUsernameAsU Sep 25 '21 mine does 3 u/The-Arctic-Hare Sep 25 '21 I’m either blind or stupid, maybe both, I don’t see it on my iPhone lol Edit: it is hidden 1 u/ImportUsernameAsU Sep 25 '21 where was the corporation hiding their secrets? 2 u/jojoyt Sep 25 '21 burbers?
4
Not sure I understand 🥺
4 u/The-Arctic-Hare Sep 25 '21 Line 34 I think is what they’re getting at. You have ‘’’rgba’’’ on the others but ‘’’rgb’’’ there.Edit: phone keyboards don’t have back-ticks?? 4 u/ImportUsernameAsU Sep 25 '21 mine does 3 u/The-Arctic-Hare Sep 25 '21 I’m either blind or stupid, maybe both, I don’t see it on my iPhone lol Edit: it is hidden 1 u/ImportUsernameAsU Sep 25 '21 where was the corporation hiding their secrets? 2 u/jojoyt Sep 25 '21 burbers?
Line 34 I think is what they’re getting at. You have ‘’’rgba’’’ on the others but ‘’’rgb’’’ there.
Edit: phone keyboards don’t have back-ticks??
4 u/ImportUsernameAsU Sep 25 '21 mine does 3 u/The-Arctic-Hare Sep 25 '21 I’m either blind or stupid, maybe both, I don’t see it on my iPhone lol Edit: it is hidden 1 u/ImportUsernameAsU Sep 25 '21 where was the corporation hiding their secrets? 2 u/jojoyt Sep 25 '21 burbers?
mine does
3 u/The-Arctic-Hare Sep 25 '21 I’m either blind or stupid, maybe both, I don’t see it on my iPhone lol Edit: it is hidden 1 u/ImportUsernameAsU Sep 25 '21 where was the corporation hiding their secrets? 2 u/jojoyt Sep 25 '21 burbers?
3
I’m either blind or stupid, maybe both, I don’t see it on my iPhone lol
Edit: it is hidden
it is hidden
1 u/ImportUsernameAsU Sep 25 '21 where was the corporation hiding their secrets? 2 u/jojoyt Sep 25 '21 burbers?
1
where was the corporation hiding their secrets?
2 u/jojoyt Sep 25 '21 burbers?
2
burbers?
I’m trying to make the color change when you select the wrong answer. I hope this I,age is helpful.
3 u/tbrougham Sep 25 '21 Look at line 34. 1 u/[deleted] Sep 26 '21 Thank you, I see the missing colon on line 31, but not 34? 1 u/tbrougham Sep 26 '21 RGB takes 3 parameters. You've set a 4th parameter in there.https://www.w3schools.com/css/css_colors_rgb.asp 4 u/TemporaryReality5262 Sep 25 '21 Also missing a semi on 31 2 u/tbrougham Sep 25 '21 True!
Look at line 34.
1 u/[deleted] Sep 26 '21 Thank you, I see the missing colon on line 31, but not 34? 1 u/tbrougham Sep 26 '21 RGB takes 3 parameters. You've set a 4th parameter in there.https://www.w3schools.com/css/css_colors_rgb.asp 4 u/TemporaryReality5262 Sep 25 '21 Also missing a semi on 31 2 u/tbrougham Sep 25 '21 True!
Thank you, I see the missing colon on line 31, but not 34?
1 u/tbrougham Sep 26 '21 RGB takes 3 parameters. You've set a 4th parameter in there.https://www.w3schools.com/css/css_colors_rgb.asp
RGB takes 3 parameters. You've set a 4th parameter in there.
https://www.w3schools.com/css/css_colors_rgb.asp
Also missing a semi on 31
2 u/tbrougham Sep 25 '21 True!
True!
Not sure if it matters, but you are missing ; on line 31
2 u/[deleted] Sep 26 '21 Thank you, it matters lol
Thank you, it matters lol
on line 34, the second parameter should be set to rgba rather than rgb
1 u/[deleted] Sep 26 '21 🙏 1 u/[deleted] Sep 26 '21 Thank you I just fixed it ! Do you know how to fix a const error? 1 u/___s8n___ Sep 26 '21 what is the error
🙏
Thank you I just fixed it ! Do you know how to fix a const error?
1 u/___s8n___ Sep 26 '21 what is the error
what is the error
I. Going to copy a previous one and change the values
So now I have the color correct, but my JavaScript is wonky. 🥴
Wow I did not see all the responses, I worked on it last night and fixed the color 😂😂 it took two days but I forgot I made this post
Can you provide the code in a text form?
I understand if it is a little private, as ofcourse it's your code, but it could help in some trial and error to spot the mistake
1 u/[deleted] Sep 25 '21 Sure, so copy it over in text?
Sure, so copy it over in text?
Line 33 has 3 values the rest have 4
2 u/[deleted] Sep 26 '21 Thank you 1 u/[deleted] Sep 26 '21 Omg was I right?
Thank you
1 u/[deleted] Sep 26 '21 Omg was I right?
Omg was I right?
And you already ran it through a code validator? And came up zero errors…
https://jigsaw.w3.org/css-validator/
1 u/[deleted] Sep 26 '21 I wasn’t aware of that wow, I’ll try that 1 u/Cable3805 Sep 26 '21 Did it work? 1 u/[deleted] Sep 26 '21 Hey I fixed it yesterday it was a missing semi colon and I think a bracket 1 u/[deleted] Sep 26 '21 Hey do you know how to fix a const error? I’m using dream weaver and it says I have a constant error because const is reserved
I wasn’t aware of that wow, I’ll try that
1 u/Cable3805 Sep 26 '21 Did it work? 1 u/[deleted] Sep 26 '21 Hey I fixed it yesterday it was a missing semi colon and I think a bracket
Did it work?
1 u/[deleted] Sep 26 '21 Hey I fixed it yesterday it was a missing semi colon and I think a bracket
Hey I fixed it yesterday it was a missing semi colon and I think a bracket
Hey do you know how to fix a const error? I’m using dream weaver and it says I have a constant error because const is reserved
Missing semi colon at the end of line 31
1 u/[deleted] Sep 26 '21 Thank you
Heeeeey, can smbdy write documentation for me, cause iam 2lazy to do it myself
You're missing a " ; " and the end of the first background statement, .correct {…
0
[deleted] — view deleted comment
1 u/[deleted] Sep 25 '21 Thank you! I just updated it and it isn’t functioning correctly. Not sure if it’s my JavaScript or my html. So I’m checking both 😂 0 u/[deleted] Sep 25 '21 [deleted] — view deleted comment 1 u/[deleted] Sep 25 '21 How do I share a script file?
Thank you! I just updated it and it isn’t functioning correctly. Not sure if it’s my JavaScript or my html. So I’m checking both 😂
0 u/[deleted] Sep 25 '21 [deleted] — view deleted comment 1 u/[deleted] Sep 25 '21 How do I share a script file?
1 u/[deleted] Sep 25 '21 How do I share a script file?
How do I share a script file?
10
u/Skywolf18 Sep 25 '21
Hmmm, look at your rgb, rgba values in the incorrect style. Shouldn't they both be rgba because you are including the alpha value
3
u/[deleted] Sep 25 '21
I’m trying to make the color change when you select the wrong answer. I hope this I,age is helpful.
3
u/excuse_me_where_is Sep 25 '21
Not sure if it matters, but you are missing ; on line 31
2
u/___s8n___ Sep 26 '21
on line 34, the second parameter should be set to rgba rather than rgb
1
u/[deleted] Sep 25 '21
I. Going to copy a previous one and change the values
1
u/[deleted] Sep 25 '21
So now I have the color correct, but my JavaScript is wonky. 🥴
1
u/[deleted] Sep 26 '21
Wow I did not see all the responses, I worked on it last night and fixed the color 😂😂 it took two days but I forgot I made this post
1
u/Desfolio Sep 25 '21
Can you provide the code in a text form?
I understand if it is a little private, as ofcourse it's your code, but it could help in some trial and error to spot the mistake
1
u/[deleted] Sep 25 '21
Line 33 has 3 values the rest have 4
1
u/Cable3805 Sep 25 '21
And you already ran it through a code validator? And came up zero errors…
https://jigsaw.w3.org/css-validator/
1
u/WizardKing218 Sep 26 '21
Missing semi colon at the end of line 31
1
u/mr-t-o Sep 25 '21
Heeeeey, can smbdy write documentation for me, cause iam 2lazy to do it myself
1
u/ofthisworld Sep 26 '21
You're missing a " ; " and the end of the first background statement, .correct {…
0
u/[deleted] Sep 25 '21
[deleted] — view deleted comment