I have attached the link to the site files(zip), I just want to attach the css to the html so that I will not have a call for a file that wastes my time and slows the site down. Thanks in advance!
Asked
Active
Viewed 40 times
2 Answers
0
You have a broken css style syntax at this line( #370)
input[type='checkbox']:checked{
....
background-image: url(...)
}
Here i see a nested style tag which is causing the problem, where an svg file using as background contains a style tag.

Arun-G
- 111
- 7
-
I went over the code and it looks good, can you please correct the code by your method and send it to me? – no mine Feb 24 '20 at 07:05
-
1As per my knowledge, when you use with in the file like that, it becomes nested } ` but this nesting is not a problem outside declaration block, where it can identify nesting ( in the above case its not) When you use it as external file, you dont have outer style – Arun-G Feb 24 '20 at 07:08
-
So there no eazy way to fix it ? – no mine Feb 24 '20 at 07:10
-
you need to rewrite that declaration a bit, see if you can just remove this from the source and if that has no impact `` or you need to rewrite that declaration like the answers here https://stackoverflow.com/questions/13367868/modify-svg-fill-color-when-being-served-as-background-image – Arun-G Feb 24 '20 at 07:42
-
I try but it makes problem on site. – no mine Feb 24 '20 at 07:58
-
Its working for me without the inner – Arun-G Feb 24 '20 at 09:14
0
All error is in the code:
background-image: url('data:image/svg+xml .................
There are three of them, remove them from your code then it will work.
Download the index.html
file code: https://send.firefox.com/download/db2db4d53aa9f186/#yK1lwyKPBiwOrPwt73fzwQ

Manas Khandelwal
- 3,790
- 2
- 11
- 24
-
When I use your code the site does not work well on mobile. The amburger menu not work properly. – no mine Feb 24 '20 at 07:49
-
You have no script file to target Hamberger menu. To add icons don't use CSS, it will be easy and less code to add icon through HTML. Are you a beginner. I can help if you want. – Manas Khandelwal Feb 24 '20 at 08:03