- How do I solve a problem with a CSS file?
- Question: How do I solve a problem with a CSS file?
- Total Answers: 3
- Answers 1: of How do I solve a problem with a CSS file?
- Ошибка: ожидается двоеточие css (css-colonexpected)
- Ответы 2
- Другие вопросы по теме
- Похожие вопросы
- Html – Error: colon expected css(css-colonexpected)
- Best Solution
- Related Solutions
- How do I solve a problem with a CSS file?
- Question: How do I solve a problem with a CSS file?
How do I solve a problem with a CSS file?
Question: How do I solve a problem with a CSS file?
I am a new user and this is my first post on StackOverflow.
I wanted to try to code an Infinity RGB animation using HTML and CSS and to get the work done, I followed this video’s instructions (https://youtu.be/dxquAfnHhqg).
When I ended coding, in my CSS file appeared 2 errors at line 3 margin 0; and line 4 padding 0; , where both «0s» are underlined and with the message colon expectedcss(css-colonexpected) and I don’t know how to fix them even if I perfectly copied the source code shown in the video (the CSS coding in the video starts at 1:00).
I also searched here on StackOverflow, I tried to change my file extension from .css to .sass but I didn’t manage to solve this problem.
Also when I run my program, it only shows me a full-screen multicolor gradient background, while there should be the Infinity animation.
It would be very helpful if you tried to explain to me what is the problem and how to solve it.
Thank you guys for your time and for your help.
* < margin: 0; padding: 0; box-sizing: border-box; >section < display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #042104; animation: animateColor 8s linear infinite; >@keyframes animateColor < 0% < filter: hue-rotate(0deg); >100% < filter: hue-rotate(360deg); >> section.container < display: flex; >section.container.circle < position: relative; width: 150px; height: 150px; margin: 0 -7.5px; >section.container.circle span < position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(calc(18deg * var(--i))); /* 360 / 20 = 18deg */ >section.container.circle span::before < content: ''; position: absolute; right: 0; top: calc(50% - 7.5px); width: 15px; height: 15px; background-color: #00ff0a; border-radius: 50%; box-shadow: 0 0 10px #00ff0a, 0 0 20px #00ff0a, 0 0 40px #00ff0a, 0 0 60px #00ff0a, 0 0 80px #00ff0a, 0 0 100px #00ff0a; transform: scale(0.1); animation: animate 4s linear infinite; animation-delay: calc(0.1 * var(--i)); >@keyframes animate < 0% < transform: scale(1); >50% , 100% < transform: scale(0.1); >> section.container.circle:nth-child(2) < transform: rotate(-180deg); >section.container.circle:nth-child(2) span::before