Can anyone tell me what's wrong with my CSS file? When i call primary color it doesn't show in my html


yts61

I am using the css stylesheet here : https://codepen.io/lorenzoyeung/pen/zYqxNQg

But when I do something like,

background-color: primary;
  border-color: secondary; 

It won't work. Why? This is the CSS sheet I want to use for my drawing web application.

Sai Prasad Nayak

The correct syntax for using CSS variables is: var(-variableName). For your query, the correct syntax should be:

background-color:var(--primary);
color:var(--secondary);

Related


Can anyone tell me what is wrong with my code

hafahan hamed What i did is i made 3 functions in js files which are currently used by 2 html5 pages. In both functions, I store the value of the selected item in a global variable, i.e. from a dropdown list, and want to display it in another page...but the va

Can anyone tell me what is wrong with my function?

pcmaster574 I'm working on this project and I keep having this problem when the code tries to return the "guess" variable, instead of returning the value of "guess" it goes to line 9 which for some reason converts the value to string and return. When I use the

Can anyone tell me what is wrong with my code

hafahan hamed What i did is i made 3 functions in js files which are currently used by 2 html5 pages. In both functions, I store the value of the selected item in a global variable, i.e. from a dropdown list, and want to display it in another page...but the va

Can anyone tell me what is wrong with my function?

pcmaster574 I'm working on this project and I keep having this problem when the code tries to return the "guess" variable, instead of returning the value of "guess" it goes to line 9 which for some reason converts the value to string and return. When I use the

Can anyone tell me what's wrong with this CSS code?

Kurdish learner I have copied this code from a free website and it works fine there, but when I use it on my own site, I get errors like: I will add the HTML and CSS code below, Also adding the original navigation of the copied code, thanks in advance, your ti

Can anyone tell me what's wrong with this CSS code?

Kurdish learner I have copied this code from a free site and it works fine on that site, but when I use it on my own site I get errors like: I will add the HTML and CSS code below, Also adding the original navigation of the copied code, thanks in advance, your

Can anyone tell me what's wrong with this CSS code?

Kurdish learner I have copied this code from a free site and it works fine on that site, but when I use it on my own site I get errors like: I will add the HTML and CSS code below, Also adding the original navigation of the copied code, thanks in advance, your

Can anyone tell me what's wrong with this CSS code?

Kurdish learner I have copied this code from a free site and it works fine on that site, but when I use it on my own site I get errors like: I will add the HTML and CSS code below, Also adding the original navigation of the copied code, thanks in advance, your

Can anyone tell me what's wrong with this CSS code?

Kurdish learner I have copied this code from a free site and it works fine on that site, but when I use it on my own site I get errors like: I will add the HTML and CSS code below, Also adding the original navigation of the copied code, thanks in advance, your

Can someone tell me what's wrong with my code?

winter sun I want to manipulate a pointer to an array of structs by adding values to the array and printing them. Here is the code: #include <iostream> using namespace std; struct words { char letter; bool marked; }; int main(){ int ncols, nrows;

Can someone tell me what's wrong with my code?

winter sun I want to manipulate a pointer to an array of structs by adding values to the array and printing them. Here is the code: #include <iostream> using namespace std; struct words { char letter; bool marked; }; int main(){ int ncols, nrows;

Can someone tell me what's wrong with my code?

Abdul Errahman Yusri Mansour I'm just starting to learn and just finished this code, if you get 2 wrong answers, your 3rd answer will be wrong even if it's the correct number! Here is my code: secretnum = 9 maxguess = 2 guesscount = 0 guess = int(input('Guess:

Can someone tell me what's wrong with my code?

winter sun I want to manipulate a pointer to an array of structs by adding values to the array and printing them. Here is the code: #include <iostream> using namespace std; struct words { char letter; bool marked; }; int main(){ int ncols, nrows;